Linux Audio

Check our new training course

Loading...
v6.8
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/*
 3 *  Unified handling of special chars.
 4 *
 5 *    Copyright IBM Corp. 2001
 6 *    Author(s): Fritz Elfert <felfert@millenux.com> <elfert@de.ibm.com>
 7 *
 8 */
 9
10#include <linux/tty.h>
11#include <linux/sysrq.h>
12#include <linux/workqueue.h>
13
14extern unsigned int
15ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
16
17
18#define CTRLCHAR_NONE  (1 << 8)
19#define CTRLCHAR_CTRL  (2 << 8)
20#define CTRLCHAR_SYSRQ (3 << 8)
21
22#define CTRLCHAR_MASK (~0xffu)
23
24
25#ifdef CONFIG_MAGIC_SYSRQ
26struct sysrq_work {
27	int key;
28	struct work_struct work;
29};
30
31void schedule_sysrq_work(struct sysrq_work *sw);
32#endif
v4.6
 
 1/*
 2 *  Unified handling of special chars.
 3 *
 4 *    Copyright IBM Corp. 2001
 5 *    Author(s): Fritz Elfert <felfert@millenux.com> <elfert@de.ibm.com>
 6 *
 7 */
 8
 9#include <linux/tty.h>
10#include <linux/sysrq.h>
11#include <linux/workqueue.h>
12
13extern unsigned int
14ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty);
15
16
17#define CTRLCHAR_NONE  (1 << 8)
18#define CTRLCHAR_CTRL  (2 << 8)
19#define CTRLCHAR_SYSRQ (3 << 8)
20
21#define CTRLCHAR_MASK (~0xffu)
22
23
24#ifdef CONFIG_MAGIC_SYSRQ
25struct sysrq_work {
26	int key;
27	struct work_struct work;
28};
29
30void schedule_sysrq_work(struct sysrq_work *sw);
31#endif