Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Unified handling of special chars.
0004  *
0005  *    Copyright IBM Corp. 2001
0006  *    Author(s): Fritz Elfert <felfert@millenux.com> <elfert@de.ibm.com>
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