]> git.baikalelectronics.ru Git - kernel.git/commit
vt: add an event interface
authorAlan Cox <alan@linux.intel.com>
Sat, 19 Sep 2009 20:13:24 +0000 (13:13 -0700)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:24 +0000 (13:13 -0700)
commitea211e4441006e4c543cf60364c85c2ccb304665
treeb558f69f2a9875ea6029546f9f70d268fd3ebaf6
parent4f9949df5716e86cb736c1ecbbd0f1ce98efa86e
vt: add an event interface

This is needed and requested in various forms for ConsoleKit, screenblank
handling and the like so do the job with a single interface. Also build the
interface so that unlike VT_WAITACTIVE and friends it won't miss events.

FIXME: Should this be a waitactive ioctl or a new device file you can poll
and read events from. We need the code anyway to fix up the existing broken
wait for console switch logic but the ConsoleKit people would prefer the
new device to the ioctl we have here

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/vt.c
drivers/char/vt_ioctl.c
include/linux/vt.h
include/linux/vt_kern.h