diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netlink.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 9120edb650a0..639e9b8b0e4d 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h | |||
| @@ -68,8 +68,17 @@ extern int netlink_change_ngroups(struct sock *sk, unsigned int groups); | |||
| 68 | extern void __netlink_clear_multicast_users(struct sock *sk, unsigned int group); | 68 | extern void __netlink_clear_multicast_users(struct sock *sk, unsigned int group); |
| 69 | extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); | 69 | extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); |
| 70 | extern int netlink_has_listeners(struct sock *sk, unsigned int group); | 70 | extern int netlink_has_listeners(struct sock *sk, unsigned int group); |
| 71 | extern struct sk_buff *netlink_alloc_skb(struct sock *ssk, unsigned int size, | 71 | |
| 72 | u32 dst_portid, gfp_t gfp_mask); | 72 | extern struct sk_buff *__netlink_alloc_skb(struct sock *ssk, unsigned int size, |
| 73 | unsigned int ldiff, u32 dst_portid, | ||
| 74 | gfp_t gfp_mask); | ||
| 75 | static inline struct sk_buff * | ||
| 76 | netlink_alloc_skb(struct sock *ssk, unsigned int size, u32 dst_portid, | ||
| 77 | gfp_t gfp_mask) | ||
| 78 | { | ||
| 79 | return __netlink_alloc_skb(ssk, size, 0, dst_portid, gfp_mask); | ||
| 80 | } | ||
| 81 | |||
| 73 | extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock); | 82 | extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock); |
| 74 | extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid, | 83 | extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid, |
| 75 | __u32 group, gfp_t allocation); | 84 | __u32 group, gfp_t allocation); |
