]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/input/lib/include/linux/notifier.h
Inital import
[l4.git] / l4 / pkg / input / lib / include / linux / notifier.h
1 #ifndef _LINUX_NOTIFIER_H
2 #define _LINUX_NOTIFIER_H
3
4 #include <linux/errno.h>
5
6 struct notifier_block
7 {
8         int (*notifier_call)(struct notifier_block *self, unsigned long, void *);
9         struct notifier_block *next;
10         int priority;
11 };
12
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      */
17
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 */
22
23 #endif
24