xserver-multidpi/hw/xfree86/os-support
Arthur Taylor ff891bbf68 linux: Use K_OFF VT KB mode over K_RAW if available.
Linux kernels since 2.6.38 (March 2011) have an VT KB mode K_OFF in
which special keys (like Ctrl+C) are not interpreted and input is not
buffered. Use of this mode over K_RAW removes the need for a
xf86ConsoleHandler to drain the VT input buffer, removing the grief it
causes when it goes wrong or is (de)initialized out-of-order. (This
also saves a few needless context switches per key event.)

If K_OFF is not defined or not understood by the kernel, K_RAW and the
previous method is used as a fall-back.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Arthur Taylor <art@ified.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
2012-01-09 13:09:48 -08:00
..
bsd Convert a bunch of sprintf to snprintf calls 2011-11-23 12:15:06 -08:00
bus Convert a bunch of sprintf to snprintf calls 2011-11-23 12:15:06 -08:00
hurd Do not trap access to timer and keyboard 2010-11-10 14:42:44 -08:00
linux linux: Use K_OFF VT KB mode over K_RAW if available. 2012-01-09 13:09:48 -08:00
misc Fix breakage on alpha caused by c7680befe5 2009-10-06 20:58:30 -04:00
shared Move check definition MAP_FAILED in xf86_OSlib.h 2011-10-29 02:13:27 +06:00
solaris sun_agp: cast key to uintptr_t before casting to (int *) 2011-11-23 12:15:06 -08:00
stub xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
xf86_OSlib.h Move check definition MAP_FAILED in xf86_OSlib.h 2011-10-29 02:13:27 +06:00
xf86_OSproc.h xfree86: Deprecate xf86MapVidMem and friends 2011-10-15 21:18:48 -07:00
xf86OSpriv.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00