Lines Matching refs:sock
30 struct sock *sk;
53 bool (*compare)(struct net *net, struct sock *sk);
56 extern struct sock *__netlink_kernel_create(struct net *net, int unit,
59 static inline struct sock *
65 extern void netlink_kernel_release(struct sock *sk);
66 extern int __netlink_change_ngroups(struct sock *sk, unsigned int groups);
67 extern int netlink_change_ngroups(struct sock *sk, unsigned int groups);
68 extern void __netlink_clear_multicast_users(struct sock *sk, unsigned int group);
70 extern int netlink_has_listeners(struct sock *sk, unsigned int group);
72 extern struct sk_buff *__netlink_alloc_skb(struct sock *ssk, unsigned int size,
76 netlink_alloc_skb(struct sock *ssk, unsigned int size, u32 dst_portid, in netlink_alloc_skb()
82 extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock);
83 extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid,
85 extern int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb,
87 int (*filter)(struct sock *dsk, struct sk_buff *skb, void *data),
89 extern int netlink_set_err(struct sock *ssk, __u32 portid, __u32 group, int code);
94 struct sock *netlink_getsockbyfilp(struct file *filp);
95 int netlink_attachskb(struct sock *sk, struct sk_buff *skb,
96 long *timeo, struct sock *ssk);
97 void netlink_detachskb(struct sock *sk, struct sk_buff *skb);
98 int netlink_sendskb(struct sock *sk, struct sk_buff *skb);
163 extern int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
166 static inline int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, in netlink_dump_start()