aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/notifier.h5
-rw-r--r--include/linux/reboot.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h
index e8a858a1d391..145c43658db0 100644
--- a/include/linux/notifier.h
+++ b/include/linux/notifier.h
@@ -189,10 +189,7 @@ static inline int notifier_to_errno(int ret)
189 189
190/* netdevice notifiers are defined in include/linux/netdevice.h */ 190/* netdevice notifiers are defined in include/linux/netdevice.h */
191 191
192#define SYS_DOWN 0x0001 /* Notify of system down */ 192/* reboot notifiers are defined in include/linux/reboot.h. */
193#define SYS_RESTART SYS_DOWN
194#define SYS_HALT 0x0002 /* Notify of system halt */
195#define SYS_POWER_OFF 0x0003 /* Notify of system power off */
196 193
197#define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */ 194#define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */
198 195
diff --git a/include/linux/reboot.h b/include/linux/reboot.h
index 3005d5a7fce5..e0879a70e830 100644
--- a/include/linux/reboot.h
+++ b/include/linux/reboot.h
@@ -39,6 +39,11 @@
39 39
40#include <linux/notifier.h> 40#include <linux/notifier.h>
41 41
42#define SYS_DOWN 0x0001 /* Notify of system down */
43#define SYS_RESTART SYS_DOWN
44#define SYS_HALT 0x0002 /* Notify of system halt */
45#define SYS_POWER_OFF 0x0003 /* Notify of system power off */
46
42extern int register_reboot_notifier(struct notifier_block *); 47extern int register_reboot_notifier(struct notifier_block *);
43extern int unregister_reboot_notifier(struct notifier_block *); 48extern int unregister_reboot_notifier(struct notifier_block *);
44 49