patch-2.3.15 linux/kernel/panic.c
Next file: linux/kernel/printk.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Aug 23 10:23:23 1999
- Orig file:
v2.3.14/linux/kernel/panic.c
- Orig date:
Mon Aug 2 16:38:02 1999
diff -u --recursive --new-file v2.3.14/linux/kernel/panic.c linux/kernel/panic.c
@@ -11,6 +11,7 @@
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/reboot.h>
+#include <linux/notifier.h>
#include <linux/init.h>
#include <linux/sysrq.h>
#include <linux/interrupt.h>
@@ -25,6 +26,8 @@
int panic_timeout = 0;
+struct notifier_block *panic_notifier_list = NULL;
+
static int __init panic_setup(char *str)
{
panic_timeout = simple_strtoul(str, NULL, 0);
@@ -54,6 +57,9 @@
#ifdef __SMP__
smp_send_stop();
#endif
+
+ notifier_call_chain(&panic_notifier_list, 0, NULL);
+
if (panic_timeout > 0)
{
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)