patch-2.1.43 linux/include/linux/sysrq.h

Next file: linux/include/linux/sysv_fs.h
Previous file: linux/include/linux/sysctl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.42/linux/include/linux/sysrq.h linux/include/linux/sysrq.h
@@ -0,0 +1,25 @@
+/* -*- linux-c -*-
+ *
+ *	$Id: sysrq.h,v 1.2 1997/05/31 18:33:41 mj Exp $
+ *
+ *	Linux Magic System Request Key Hacks
+ *
+ *	(c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ */
+
+#include <linux/config.h>
+
+extern int emergency_sync_scheduled;
+
+#define EMERG_SYNC 1
+#define EMERG_REMOUNT 2
+
+extern void do_emergency_sync(void);
+
+#ifdef CONFIG_MAGIC_SYSRQ
+#define CHECK_EMERGENCY_SYNC			\
+	if (emergency_sync_scheduled)		\
+		do_emergency_sync();
+#else
+#define CHECK_EMERGENCY_SYNC
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov