0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include <linux/tty.h>
0011 #include <linux/sysrq.h>
0012 #include <linux/workqueue.h>
0013
0014 extern unsigned int
0015 ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
0016
0017
0018 #define CTRLCHAR_NONE (1 << 8)
0019 #define CTRLCHAR_CTRL (2 << 8)
0020 #define CTRLCHAR_SYSRQ (3 << 8)
0021
0022 #define CTRLCHAR_MASK (~0xffu)
0023
0024
0025 #ifdef CONFIG_MAGIC_SYSRQ
0026 struct sysrq_work {
0027 int key;
0028 struct work_struct work;
0029 };
0030
0031 void schedule_sysrq_work(struct sysrq_work *sw);
0032 #endif