Lines Matching refs:ssk
1151 static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid)
1156 sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid);
1164 READ_ONCE(nlk->dst_portid) != nlk_sk(ssk)->portid) {
1223 long *timeo, struct sock *ssk)
1233 if (!ssk || netlink_is_kernel(ssk))
1311 struct sock *ssk)
1320 NETLINK_CB(skb).sk = ssk;
1321 netlink_deliver_tap_kernel(sk, ssk, skb);
1331 int netlink_unicast(struct sock *ssk, struct sk_buff *skb,
1340 timeo = sock_sndtimeo(ssk, nonblock);
1342 sk = netlink_getsockbyportid(ssk, portid);
1348 return netlink_unicast_kernel(sk, skb, ssk);
1357 err = netlink_attachskb(sk, skb, &timeo, ssk);
1500 int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, u32 portid,
1505 struct net *net = sock_net(ssk);
1511 info.exclude_sk = ssk;
1529 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list)
1551 int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid,
1554 return netlink_broadcast_filtered(ssk, skb, portid, group, allocation,
1594 * @ssk: the kernel netlink socket, as returned by netlink_kernel_create()
1602 int netlink_set_err(struct sock *ssk, u32 portid, u32 group, int code)
1609 info.exclude_sk = ssk;
1617 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list)
2322 int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
2333 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid);