1 #ifndef _LINUX_NOTIFIER_H
2 #define _LINUX_NOTIFIER_H
4 #include <linux/errno.h>
8 int (*notifier_call)(struct notifier_block *self, unsigned long, void *);
9 struct notifier_block *next;
13 #define NOTIFY_DONE 0x0000 /* Don't care */
14 #define NOTIFY_OK 0x0001 /* Suits me */
15 #define NOTIFY_STOP_MASK 0x8000 /* Don't call further */
16 #define NOTIFY_BAD (NOTIFY_STOP_MASK|0x0002) /* Bad/Veto action */
18 #define SYS_DOWN 0x0001 /* Notify of system down */
19 #define SYS_RESTART SYS_DOWN
20 #define SYS_HALT 0x0002 /* Notify of system halt */
21 #define SYS_POWER_OFF 0x0003 /* Notify of system power off */