3 * $Id: sysrq.h,v 1.3 1997/07/17 11:54:33 mj Exp $
5 * Linux Magic System Request Key Hacks
7 * (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
10 #include <linux/config.h>
16 /* Generic SysRq interface -- you may call it from any device driver, supplying
17 * ASCII code of the key, pointer to registers and kbd/tty structs (if they
18 * are available -- else NULL's).
21 void handle_sysrq(int, struct pt_regs
*, struct kbd_struct
*, struct tty_struct
*);
23 /* Deferred actions */
25 extern int emergency_sync_scheduled
;
28 #define EMERG_REMOUNT 2
30 void do_emergency_sync(void);
32 #ifdef CONFIG_MAGIC_SYSRQ
33 #define CHECK_EMERGENCY_SYNC \
34 if (emergency_sync_scheduled) \
37 #define CHECK_EMERGENCY_SYNC
40 extern int sysrq_enabled
;