Lines Matching refs:portid
136 NETLINK_CB(new).portid = NETLINK_CB(skb).portid; in netlink_to_full_skb()
776 NETLINK_CB(skb).portid = nlk->portid; in netlink_mmap_sendmsg()
1007 u32 portid; member
1012 (offsetof(struct netlink_compare_arg, portid) + sizeof(u32))
1020 return nlk->portid != x->portid || in netlink_compare()
1025 struct net *net, u32 portid) in netlink_compare_arg_init() argument
1029 arg->portid = portid; in netlink_compare_arg_init()
1032 static struct sock *__netlink_lookup(struct netlink_table *table, u32 portid, in __netlink_lookup() argument
1037 netlink_compare_arg_init(&arg, net, portid); in __netlink_lookup()
1046 netlink_compare_arg_init(&arg, sock_net(sk), nlk_sk(sk)->portid); in __netlink_insert()
1052 static struct sock *netlink_lookup(struct net *net, int protocol, u32 portid) in netlink_lookup() argument
1058 sk = __netlink_lookup(table, portid, net); in netlink_lookup()
1092 static int netlink_insert(struct sock *sk, u32 portid) in netlink_insert() argument
1099 err = nlk_sk(sk)->portid == portid ? 0 : -EBUSY; in netlink_insert()
1108 nlk_sk(sk)->portid = portid; in netlink_insert()
1126 nlk_sk(sk)->bound = portid; in netlink_insert()
1293 if (nlk->portid && nlk->bound) { in netlink_release()
1297 .portid = nlk->portid, in netlink_release()
1338 s32 portid = task_tgid_vnr(current); in netlink_autobind() local
1345 if (__netlink_lookup(table, portid, net)) { in netlink_autobind()
1347 portid = rover--; in netlink_autobind()
1355 err = netlink_insert(sk, portid); in netlink_autobind()
1529 if (nladdr->nl_pid != nlk->portid) in netlink_bind()
1628 nladdr->nl_pid = nlk->portid; in netlink_getname()
1634 static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid) in netlink_getsockbyportid() argument
1639 sock = netlink_lookup(sock_net(ssk), ssk->sk_protocol, portid); in netlink_getsockbyportid()
1646 nlk->dst_portid != nlk_sk(ssk)->portid) { in netlink_getsockbyportid()
1825 u32 portid, int nonblock) in netlink_unicast() argument
1835 sk = netlink_getsockbyportid(ssk, portid); in netlink_unicast()
1962 u32 portid; member
1983 if (nlk->portid == p->portid || p->group - 1 >= nlk->ngroups || in do_one_broadcast()
2032 int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, u32 portid, in netlink_broadcast_filtered() argument
2045 info.portid = portid; in netlink_broadcast_filtered()
2083 int netlink_broadcast(struct sock *ssk, struct sk_buff *skb, u32 portid, in netlink_broadcast() argument
2086 return netlink_broadcast_filtered(ssk, skb, portid, group, allocation, in netlink_broadcast()
2093 u32 portid; member
2109 if (nlk->portid == p->portid || p->group - 1 >= nlk->ngroups || in do_one_set_err()
2134 int netlink_set_err(struct sock *ssk, u32 portid, u32 group, int code) in netlink_set_err() argument
2141 info.portid = portid; in netlink_set_err()
2387 NETLINK_CB(skb).portid = nlk->portid; in netlink_sendmsg()
2472 addr->nl_pid = NETLINK_CB(skb).portid; in netlink_recvmsg()
2658 __nlmsg_put(struct sk_buff *skb, u32 portid, u32 seq, int type, int len, int flags) in __nlmsg_put() argument
2667 nlh->nlmsg_pid = portid; in __nlmsg_put()
2710 skb = netlink_alloc_skb(sk, alloc_size, nlk->portid, in netlink_dump()
2717 skb = netlink_alloc_skb(sk, alloc_size, nlk->portid, in netlink_dump()
2796 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid); in __netlink_dump_start()
2861 NETLINK_CB(in_skb).portid, GFP_KERNEL); in netlink_ack()
2867 NETLINK_CB(in_skb).portid); in netlink_ack()
2876 rep = __nlmsg_put(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in netlink_ack()
2881 netlink_unicast(in_skb->sk, skb, NETLINK_CB(in_skb).portid, MSG_DONTWAIT); in netlink_ack()
2936 int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid, in nlmsg_notify() argument
2946 exclude_portid = portid; in nlmsg_notify()
2957 err2 = nlmsg_unicast(sk, skb, portid); in nlmsg_notify()
3076 nlk->portid, in netlink_seq_show()
3199 netlink_compare_arg_init(&arg, sock_net(&nlk->sk), nlk->portid); in netlink_hash()