summaryrefslogtreecommitdiffstats
path: root/include/linux/notifier.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
committer <ralf@linux-mips.org>1997-04-29 21:13:14 +0000
commit19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch)
tree40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/linux/notifier.h
parent7206675c40394c78a90e74812bbdbf8cf3cca1be (diff)
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/linux/notifier.h')
-rw-r--r--include/linux/notifier.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h
index b3c9ccf65..86db4508f 100644
--- a/include/linux/notifier.h
+++ b/include/linux/notifier.h
@@ -13,7 +13,7 @@
struct notifier_block
{
- int (*notifier_call)(struct notifier_block *this, unsigned long, void *);
+ int (*notifier_call)(struct notifier_block *self, unsigned long, void *);
struct notifier_block *next;
int priority;
};
@@ -92,5 +92,22 @@ extern __inline__ int notifier_call_chain(struct notifier_block **n, unsigned lo
detected a hardware crash and restarted
- we can use this eg to kick tcp sessions
once done */
+#define NETDEV_CHANGE 0x0004 /* Notify device state change */
+#define NETDEV_REGISTER 0x0005
+#define NETDEV_UNREGISTER 0x0006
+#define NETDEV_CHANGEMTU 0x0007
+#define NETDEV_CHANGEADDR 0x0008
+
+#define SYS_DOWN 0x0001 /* Notify of system down */
+#define SYS_RESTART SYS_DOWN
+#define SYS_HALT 0x0002 /* Notify of system halt */
+#define SYS_POWER_OFF 0x0003 /* Notify of system power off */
+
+/*
+ * Publically visible notifier objects
+ */
+
+extern struct notifier_block *boot_notifier_list;
+
#endif
#endif