Lines Matching refs:sock
30 struct sock *sk;
51 bool (*compare)(struct net *net, struct sock *sk);
54 extern struct sock *__netlink_kernel_create(struct net *net, int unit,
57 static inline struct sock *
63 extern void netlink_kernel_release(struct sock *sk);
64 extern int __netlink_change_ngroups(struct sock *sk, unsigned int groups);
65 extern int netlink_change_ngroups(struct sock *sk, unsigned int groups);
66 extern void __netlink_clear_multicast_users(struct sock *sk, unsigned int group);
68 extern int netlink_has_listeners(struct sock *sk, unsigned int group);
69 extern struct sk_buff *netlink_alloc_skb(struct sock *ssk, unsigned int size,
71 extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 portid, int nonblock);
72 extern int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, __u32 portid,
74 extern int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb,
76 int (*filter)(struct sock *dsk, struct sk_buff *skb, void *data),
78 extern int netlink_set_err(struct sock *ssk, __u32 portid, __u32 group, int code);
83 struct sock *netlink_getsockbyfilp(struct file *filp);
84 int netlink_attachskb(struct sock *sk, struct sk_buff *skb,
85 long *timeo, struct sock *ssk);
86 void netlink_detachskb(struct sock *sk, struct sk_buff *skb);
87 int netlink_sendskb(struct sock *sk, struct sk_buff *skb);
154 extern int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
157 static inline int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, in netlink_dump_start()