diff options
author | 2017-01-13 21:07:56 +0100 | |
---|---|---|
committer | 2017-01-25 11:54:02 +0100 | |
commit | bcd375f7f71f7106c97516bf5395149954ef8810 (patch) | |
tree | d3622fbb8a88f55aa8223c343e6dcb9b81d6740c /include/linux/console.h | |
parent | console: Move scrollback data into its own struct (diff) | |
download | linux-bcd375f7f71f7106c97516bf5395149954ef8810.tar.gz linux-bcd375f7f71f7106c97516bf5395149954ef8810.tar.bz2 linux-bcd375f7f71f7106c97516bf5395149954ef8810.zip |
console: Add callback to flush scrollback buffer to consw struct
This new callback is in preparation for persistent scrollback buffer
support for VGA consoles.
With a single scrollback buffer for all consoles, we could flush the
buffer just by invocating consw->con_switch(). But when each VGA console
has its own scrollback buffer, we need a new callback to tell the
video console driver which buffer to flush.
Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Reviewed-by: Andrey Utkin <andrey_utkin@fastmail.com>
Tested-by: Andrey Utkin <andrey_utkin@fastmail.com>
Tested-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/console.h')
-rw-r--r-- | include/linux/console.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/console.h b/include/linux/console.h index 9c26c6685587..5949d1855589 100644 --- a/include/linux/console.h +++ b/include/linux/console.h @@ -73,6 +73,10 @@ struct consw { u16 *(*con_screen_pos)(struct vc_data *, int); unsigned long (*con_getxy)(struct vc_data *, unsigned long, int *, int *); /* + * Flush the video console driver's scrollback buffer + */ + void (*con_flush_scrollback)(struct vc_data *); + /* * Prepare the console for the debugger. This includes, but is not * limited to, unblanking the console, loading an appropriate * palette, and allowing debugger generated output. |