Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
net
core
netevent.c
Go to the documentation of this file.
1
/*
2
* Network event notifiers
3
*
4
* Authors:
5
* Tom Tucker <
[email protected]
>
6
* Steve Wise <
[email protected]
>
7
*
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public License
10
* as published by the Free Software Foundation; either version
11
* 2 of the License, or (at your option) any later version.
12
*
13
* Fixes:
14
*/
15
16
#include <linux/rtnetlink.h>
17
#include <
linux/notifier.h
>
18
#include <linux/export.h>
19
#include <
net/netevent.h
>
20
21
static
ATOMIC_NOTIFIER_HEAD
(netevent_notif_chain);
22
32
int
register_netevent_notifier
(
struct
notifier_block
*nb)
33
{
34
int
err
;
35
36
err =
atomic_notifier_chain_register
(&netevent_notif_chain, nb);
37
return
err
;
38
}
39
EXPORT_SYMBOL_GPL
(
register_netevent_notifier
);
40
51
int
unregister_netevent_notifier
(
struct
notifier_block
*nb)
52
{
53
return
atomic_notifier_chain_unregister
(&netevent_notif_chain, nb);
54
}
55
EXPORT_SYMBOL_GPL
(
unregister_netevent_notifier
);
56
66
int
call_netevent_notifiers
(
unsigned
long
val
,
void
*
v
)
67
{
68
return
atomic_notifier_call_chain
(&netevent_notif_chain, val, v);
69
}
70
EXPORT_SYMBOL_GPL
(
call_netevent_notifiers
);
Generated on Thu Jan 10 2013 14:57:38 for Linux Kernel by
1.8.2