This source file includes following definitions.
- register_netevent_notifier
- unregister_netevent_notifier
- call_netevent_notifiers
1
2
3
4
5
6
7
8
9
10
11
12 #include <linux/rtnetlink.h>
13 #include <linux/notifier.h>
14 #include <linux/export.h>
15 #include <net/netevent.h>
16
17 static ATOMIC_NOTIFIER_HEAD(netevent_notif_chain);
18
19
20
21
22
23
24
25
26
27
28 int register_netevent_notifier(struct notifier_block *nb)
29 {
30 return atomic_notifier_chain_register(&netevent_notif_chain, nb);
31 }
32 EXPORT_SYMBOL_GPL(register_netevent_notifier);
33
34
35
36
37
38
39
40
41
42
43
44 int unregister_netevent_notifier(struct notifier_block *nb)
45 {
46 return atomic_notifier_chain_unregister(&netevent_notif_chain, nb);
47 }
48 EXPORT_SYMBOL_GPL(unregister_netevent_notifier);
49
50
51
52
53
54
55
56
57
58
59 int call_netevent_notifiers(unsigned long val, void *v)
60 {
61 return atomic_notifier_call_chain(&netevent_notif_chain, val, v);
62 }
63 EXPORT_SYMBOL_GPL(call_netevent_notifiers);