Home
last modified time | relevance | path

Searched refs:nlk (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/net/netlink/
H A Daf_netlink.c364 struct netlink_sock *nlk = nlk_sk(sk); in netlink_rcv_wake() local
367 clear_bit(NETLINK_S_CONGESTED, &nlk->state); in netlink_rcv_wake()
368 if (!test_bit(NETLINK_S_CONGESTED, &nlk->state)) in netlink_rcv_wake()
369 wake_up_interruptible(&nlk->wait); in netlink_rcv_wake()
479 const struct netlink_sock *nlk = ptr; in netlink_compare() local
481 return nlk->portid != x->portid || in netlink_compare()
482 !net_eq(sock_net(&nlk->sk), read_pnet(&x->pnet)); in netlink_compare()
626 struct netlink_sock *nlk; in __netlink_create() local
636 nlk = nlk_sk(sk); in __netlink_create()
637 mutex_init(&nlk->nl_cb_mutex); in __netlink_create()
[all …]
H A Ddiag.c14 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_dump_groups() local
16 if (nlk->groups == NULL) in sk_diag_dump_groups()
19 return nla_put(nlskb, NETLINK_DIAG_GROUPS, NLGRPSZ(nlk->ngroups), in sk_diag_dump_groups()
20 nlk->groups); in sk_diag_dump_groups()
25 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_put_flags() local
28 if (nlk->cb_running) in sk_diag_put_flags()
50 struct netlink_sock *nlk = nlk_sk(sk); in sk_diag_fill() local
64 rep->ndiag_portid = nlk->portid; in sk_diag_fill()
65 rep->ndiag_dst_portid = nlk->dst_portid; in sk_diag_fill()
66 rep->ndiag_dst_group = nlk->dst_group; in sk_diag_fill()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_netlink.c18 struct netlink_sock *nlk = ctx->sk; in dump_netlink() local
24 if (nlk == (void *)0) in dump_netlink()
32 s = &nlk->sk; in dump_netlink()
35 if (!nlk->groups) { in dump_netlink()
41 bpf_probe_read_kernel(&group, sizeof(group), &nlk->groups[0]); in dump_netlink()
44 nlk->portid, (u32)group, in dump_netlink()
47 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
/openbmc/linux/tools/testing/selftests/bpf/
H A DREADME.rst155 ; struct netlink_sock *nlk = ctx->sk;