aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/notifier.h
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2011-07-25 20:13:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 23:57:14 -0400
commitdcfe1421c916345b068f43749263b94270324500 (patch)
tree3a23960235eed24754b9775c85ff2e50ffc367bb /include/linux/notifier.h
parent80f1ff97d0a9d92f44d2b2dd9425afa950e58f2b (diff)
notifiers: net: move netdevice notifiers into netdevice.h
It is not necessary to share the same notifier.h. Signed-off-by: WANG Cong <amwang@redhat.com> Acked-by: David Miller <davem@davemloft.net> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/notifier.h')
-rw-r--r--include/linux/notifier.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h
index 9eb25fc0145b..e8a858a1d391 100644
--- a/include/linux/notifier.h
+++ b/include/linux/notifier.h
@@ -187,33 +187,7 @@ static inline int notifier_to_errno(int ret)
187 187
188/* CPU notfiers are defined in include/linux/cpu.h. */ 188/* CPU notfiers are defined in include/linux/cpu.h. */
189 189
190/* netdevice notifier chain. Please remember to update the rtnetlink 190/* netdevice notifiers are defined in include/linux/netdevice.h */
191 * notification exclusion list in rtnetlink_event() when adding new
192 * types.
193 */
194#define NETDEV_UP 0x0001 /* For now you can't veto a device up/down */
195#define NETDEV_DOWN 0x0002
196#define NETDEV_REBOOT 0x0003 /* Tell a protocol stack a network interface
197 detected a hardware crash and restarted
198 - we can use this eg to kick tcp sessions
199 once done */
200#define NETDEV_CHANGE 0x0004 /* Notify device state change */
201#define NETDEV_REGISTER 0x0005
202#define NETDEV_UNREGISTER 0x0006
203#define NETDEV_CHANGEMTU 0x0007
204#define NETDEV_CHANGEADDR 0x0008
205#define NETDEV_GOING_DOWN 0x0009
206#define NETDEV_CHANGENAME 0x000A
207#define NETDEV_FEAT_CHANGE 0x000B
208#define NETDEV_BONDING_FAILOVER 0x000C
209#define NETDEV_PRE_UP 0x000D
210#define NETDEV_PRE_TYPE_CHANGE 0x000E
211#define NETDEV_POST_TYPE_CHANGE 0x000F
212#define NETDEV_POST_INIT 0x0010
213#define NETDEV_UNREGISTER_BATCH 0x0011
214#define NETDEV_RELEASE 0x0012
215#define NETDEV_NOTIFY_PEERS 0x0013
216#define NETDEV_JOIN 0x0014
217 191
218#define SYS_DOWN 0x0001 /* Notify of system down */ 192#define SYS_DOWN 0x0001 /* Notify of system down */
219#define SYS_RESTART SYS_DOWN 193#define SYS_RESTART SYS_DOWN