diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2008-10-14 07:02:09 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-22 02:00:25 +0200 |
commit | febde3711992a64ea83a47a719f68a90c4b0927a (patch) | |
tree | 27f975fe9b3bd3b99a1a7043c34cf32176b7067d /drivers/input | |
parent | hvc_console: Fix loop if put_char() returns 0 (diff) | |
download | linux-febde3711992a64ea83a47a719f68a90c4b0927a.tar.xz linux-febde3711992a64ea83a47a719f68a90c4b0927a.zip |
hvc_console: Add support for tty window resizing
The patch provides the hvc_resize() function to update the terminal
window dimensions (struct winsize) for a specified hvc console.
The function stores the new window size and schedules a function
that finally updates the tty winsize and signals the change to
user space (SIGWINCH).
Because the winsize update must acquire a mutex and might sleep,
the function is scheduled instead of being called from hvc_poll()
or khvcd.
This patch uses the tty_do_resize() routine from the tty layer.
A pending resize work is canceled in hvc_close() and hvc_hangup().
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions