Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ctrlchar.h
Go to the documentation of this file.
1 /*
2  * Unified handling of special chars.
3  *
4  * Copyright IBM Corp. 2001
5  * Author(s): Fritz Elfert <[email protected]> <[email protected]>
6  *
7  */
8 
9 #include <linux/tty.h>
10 
11 extern unsigned int
12 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
13 
14 
15 #define CTRLCHAR_NONE (1 << 8)
16 #define CTRLCHAR_CTRL (2 << 8)
17 #define CTRLCHAR_SYSRQ (3 << 8)
18 
19 #define CTRLCHAR_MASK (~0xffu)