Home
last modified time | relevance | path

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

/Linux-v6.6/net/netlink/
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()
396 struct netlink_sock *nlk = nlk_sk(sk); in netlink_sock_destruct() local
398 if (nlk->cb_running) { in netlink_sock_destruct()
399 if (nlk->cb.done) in netlink_sock_destruct()
400 nlk->cb.done(&nlk->cb); in netlink_sock_destruct()
401 module_put(nlk->cb.module); in netlink_sock_destruct()
402 kfree_skb(nlk->cb.skb); in netlink_sock_destruct()
[all …]
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()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
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()
/Linux-v6.6/tools/testing/selftests/bpf/
DREADME.rst155 ; struct netlink_sock *nlk = ctx->sk;