summaryrefslogtreecommitdiff
path: root/include/linux/kd.h
diff options
context:
space:
mode:
authorArthur Taylor <art@ified.ca>2011-02-05 00:55:50 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 22:12:40 +0300
commit9fc3de9c83565fcaa23df74c2fc414bb6e7efb0a (patch)
tree8d5fb1f8b90fb9a4f194aee8971859a45283d88c /include/linux/kd.h
parent8e6d3fe1af38bea3f6c003f8737d2e3a02d00fa0 (diff)
downloadlinux-9fc3de9c83565fcaa23df74c2fc414bb6e7efb0a.tar.xz
vt: Add virtual console keyboard mode OFF
virtual console: add keyboard mode OFF Add a new mode for the virtual console keyboard OFF in which all input other than shift keys is ignored. Prevents vt input buffers from overflowing when a program opens but doesn't read from a tty, like X11 using evdev for input. Signed-off-by: Arthur Taylor <art@ified.ca> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/kd.h')
-rw-r--r--include/linux/kd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kd.h b/include/linux/kd.h
index 15f2853ea58f..c36d8476db55 100644
--- a/include/linux/kd.h
+++ b/include/linux/kd.h
@@ -81,6 +81,7 @@ struct unimapinit {
#define K_XLATE 0x01
#define K_MEDIUMRAW 0x02
#define K_UNICODE 0x03
+#define K_OFF 0x04
#define KDGKBMODE 0x4B44 /* gets current keyboard mode */
#define KDSKBMODE 0x4B45 /* sets current keyboard mode */