patch-2.4.0-test6 linux/drivers/char/sysrq.c
Next file: linux/drivers/char/tda9875.c
Previous file: linux/drivers/char/sh-sci.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Jul 31 19:36:10 2000
- Orig file:
v2.4.0-test5/linux/drivers/char/sysrq.c
- Orig date:
Mon Mar 27 08:08:24 2000
diff -u --recursive --new-file v2.4.0-test5/linux/drivers/char/sysrq.c linux/drivers/char/sysrq.c
@@ -30,6 +30,9 @@
extern int console_loglevel;
extern struct list_head super_blocks;
+/* Whether we react on sysrq keys or just ignore them */
+int sysrq_enabled = 1;
+
/* Machine specific power off function */
void (*sysrq_power_off)(void) = NULL;
@@ -59,6 +62,9 @@
struct kbd_struct *kbd, struct tty_struct *tty)
{
int orig_log_level = console_loglevel;
+
+ if (!sysrq_enabled)
+ return;
if (!key)
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)