patch-2.2.11 linux/kernel/panic.c
Next file: linux/kernel/signal.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Aug 9 12:04:41 1999
- Orig file:
v2.2.10/linux/kernel/panic.c
- Orig date:
Sun Dec 27 22:45:13 1998
diff -u --recursive --new-file v2.2.10/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;
+
void __init panic_setup(char *str, int *ints)
{
if (ints[0] == 1)
@@ -52,6 +55,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)