Re: [PATCH RESEND] vgacon: remember scrollback buffer on console switch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marcin Slusarz
Date: Saturday, October 25, 2008 - 3:43 pm

On Sat, Oct 25, 2008 at 01:46:15PM -0700, Andrew Morton wrote:

Yes. I could imagine scenario where this memory would be considered "wasted".


/sys knob seems to be the most flexible option.

/sys/class/vtconsole/vtconX/persistent_history? 0/1


I checked it and this code is called under console_sem.

vgacon_switch_scrollback <- vgacon_switch <- con_switch <- redraw_screen <- switch_screen <- complete_change_console <-
1) vt_ioctl (calls acquire_console_sem before complete_change_console)
2) change_console <- console_callback (calls acquire_console_sem before change_console)

Thanks for a review!

PS: why DECLARE_MUTEX _defines_ _semaphore_? there are only 8 uses of this
macro so it's not a big problem to rename it to e.g. DEFINE_SEMAPHORE (I can
provide a patch)

Marcin
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH RESEND] vgacon: remember scrollback buffer on c ..., Marcin Slusarz, (Sat Oct 25, 3:43 pm)