diff options
Diffstat (limited to 'net/netlink/af_netlink.h')
| -rw-r--r-- | net/netlink/af_netlink.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/netlink/af_netlink.h b/net/netlink/af_netlink.h index b20a1731759b..f1c31b39aa3e 100644 --- a/net/netlink/af_netlink.h +++ b/net/netlink/af_netlink.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define _AF_NETLINK_H | 2 | #define _AF_NETLINK_H |
| 3 | 3 | ||
| 4 | #include <linux/rhashtable.h> | 4 | #include <linux/rhashtable.h> |
| 5 | #include <linux/atomic.h> | ||
| 5 | #include <net/sock.h> | 6 | #include <net/sock.h> |
| 6 | 7 | ||
| 7 | #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8) | 8 | #define NLGRPSZ(x) (ALIGN(x, sizeof(unsigned long) * 8) / 8) |
| @@ -39,8 +40,8 @@ struct netlink_sock { | |||
| 39 | struct mutex *cb_mutex; | 40 | struct mutex *cb_mutex; |
| 40 | struct mutex cb_def_mutex; | 41 | struct mutex cb_def_mutex; |
| 41 | void (*netlink_rcv)(struct sk_buff *skb); | 42 | void (*netlink_rcv)(struct sk_buff *skb); |
| 42 | int (*netlink_bind)(int group); | 43 | int (*netlink_bind)(struct net *net, int group); |
| 43 | void (*netlink_unbind)(int group); | 44 | void (*netlink_unbind)(struct net *net, int group); |
| 44 | struct module *module; | 45 | struct module *module; |
| 45 | #ifdef CONFIG_NETLINK_MMAP | 46 | #ifdef CONFIG_NETLINK_MMAP |
| 46 | struct mutex pg_vec_lock; | 47 | struct mutex pg_vec_lock; |
| @@ -65,8 +66,8 @@ struct netlink_table { | |||
| 65 | unsigned int groups; | 66 | unsigned int groups; |
| 66 | struct mutex *cb_mutex; | 67 | struct mutex *cb_mutex; |
| 67 | struct module *module; | 68 | struct module *module; |
| 68 | int (*bind)(int group); | 69 | int (*bind)(struct net *net, int group); |
| 69 | void (*unbind)(int group); | 70 | void (*unbind)(struct net *net, int group); |
| 70 | bool (*compare)(struct net *net, struct sock *sock); | 71 | bool (*compare)(struct net *net, struct sock *sock); |
| 71 | int registered; | 72 | int registered; |
| 72 | }; | 73 | }; |
