Lines Matching defs:ssk
1138 static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid)
1143 sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid);
1151 READ_ONCE(nlk->dst_portid) != nlk_sk(ssk)->portid) {
1212 long *timeo, struct sock *ssk)
1230 if (!ssk || netlink_is_kernel(ssk))
1308 struct sock *ssk)
1318 NETLINK_CB(skb).sk = ssk;
1319 netlink_deliver_tap_kernel(sk, ssk, skb);
1329 int netlink_unicast(struct sock *ssk, struct sk_buff *skb,
1338 timeo = sock_sndtimeo(ssk, nonblock);
1340 sk = netlink_getsockbyportid(ssk, portid);
1346 return netlink_unicast_kernel(sk, skb, ssk);
1355 err = netlink_attachskb(sk, skb, &timeo, ssk);
1504 int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb,
1510 struct net *net = sock_net(ssk);
1516 info.exclude_sk = ssk;
1534 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list)
1556 int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid,
1559 return netlink_broadcast_filtered(ssk, skb, portid, group, allocation,
1599 * @ssk: the kernel netlink socket, as returned by netlink_kernel_create()
1607 int netlink_set_err(struct sock *ssk, u32 portid, u32 group, int code)
1614 info.exclude_sk = ssk;
1622 sk_for_each_bound(sk, &nl_table[ssk->sk_protocol].mc_list)
2388 int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
2399 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid);