patch-2.1.48 linux/include/linux/sysrq.h
Next file: linux/init/main.c
Previous file: linux/include/linux/selection.h
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Mon Aug 4 13:59:34 1997
- Orig file:
v2.1.47/linux/include/linux/sysrq.h
- Orig date:
Mon Jul 7 16:02:01 1997
diff -u --recursive --new-file v2.1.47/linux/include/linux/sysrq.h linux/include/linux/sysrq.h
@@ -1,6 +1,6 @@
/* -*- linux-c -*-
*
- * $Id: sysrq.h,v 1.2 1997/05/31 18:33:41 mj Exp $
+ * $Id: sysrq.h,v 1.3 1997/07/17 11:54:33 mj Exp $
*
* Linux Magic System Request Key Hacks
*
@@ -9,12 +9,25 @@
#include <linux/config.h>
+struct pt_regs;
+struct kbd_struct;
+struct tty_struct;
+
+/* Generic SysRq interface -- you may call it from any device driver, supplying
+ * ASCII code of the key, pointer to registers and kbd/tty structs (if they
+ * are available -- else NULL's).
+ */
+
+void handle_sysrq(int, struct pt_regs *, struct kbd_struct *, struct tty_struct *);
+
+/* Deferred actions */
+
extern int emergency_sync_scheduled;
#define EMERG_SYNC 1
#define EMERG_REMOUNT 2
-extern void do_emergency_sync(void);
+void do_emergency_sync(void);
#ifdef CONFIG_MAGIC_SYSRQ
#define CHECK_EMERGENCY_SYNC \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov