Home
last modified time | relevance | path

Searched refs:sk_refcnt (Results 1 - 25 of 99) sorted by relevance

1234

/kernel/linux/linux-5.10/net/mptcp/
H A Dtoken_test.c58 refcount_set(&((struct sock *)msk)->sk_refcnt, 1); in build_msk()
80 KUNIT_EXPECT_EQ(test, 2, (int)refcount_read(&sk->sk_refcnt)); in mptcp_token_test_msk_basic()
120 refcount_set(&sk->sk_refcnt, 0); in mptcp_token_test_destroyed()
H A Dtoken.c260 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock()
319 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
/kernel/linux/linux-6.6/net/mptcp/
H A Dtoken_test.c58 refcount_set(&((struct sock *)msk)->sk_refcnt, 1); in build_msk()
83 KUNIT_EXPECT_EQ(test, 2, (int)refcount_read(&sk->sk_refcnt)); in mptcp_token_test_msk_basic()
123 refcount_set(&sk->sk_refcnt, 0); in mptcp_token_test_destroyed()
H A Dtoken.c263 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock()
322 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
/kernel/linux/linux-5.10/include/linux/can/
H A Dskb.h57 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_netlink.c48 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
H A Dbpf_tracing_net.h37 #define sk_refcnt __sk_common.skc_refcnt macro
H A Dbpf_iter_udp6.c75 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
H A Dbpf_iter_udp4.c67 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_netlink.c47 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
H A Dbpf_iter_udp6.c74 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
H A Dbpf_iter_udp4.c66 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
H A Dbpf_iter_unix.c42 sk->sk_refcnt.refs.counter, in dump_unix()
H A Dbpf_tracing_net.h85 #define sk_refcnt __sk_common.skc_refcnt macro
/kernel/linux/linux-5.10/net/ipv4/
H A Dudp_diag.c54 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in udp_dump_one()
207 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in __udp_diag_destroy()
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_queue.c107 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs()
196 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in __nf_queue()
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_queue.c101 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs()
185 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in __nf_queue()
/kernel/linux/linux-6.6/net/ipv4/
H A Dudp_diag.c54 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in udp_dump_one()
205 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in __udp_diag_destroy()
/kernel/linux/linux-5.10/include/net/
H A Dsock.h213 * offset(struct sock, sk_refcnt) == 128 on 64bit arches
361 #define sk_refcnt __sk_common.skc_refcnt macro
729 refcount_inc(&sk->sk_refcnt); in sock_hold()
737 refcount_dec(&sk->sk_refcnt); in __sock_put()
746 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_del_node_init()
768 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_nulls_del_node_init_rcu()
1307 if (refcount_read(&sk->sk_refcnt) != 1) in sk_refcnt_debug_release()
1309 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1850 if (refcount_dec_and_test(&sk->sk_refcnt)) in sock_put()
2284 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_sk_safe()
[all...]
H A Drequest_sock.h96 if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) { in reqsk_alloc()
147 * accessed even after a listener is closed, until its sk_refcnt drops
149 * listen_opt around until sk_refcnt drops to 0. But there is some other
/kernel/linux/linux-6.6/include/linux/can/
H A Dskb.h80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/kernel/linux/linux-5.10/net/llc/
H A Dllc_conn.c491 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_established()
550 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_listener()
975 if (refcount_read(&sk->sk_refcnt) != 1) { in llc_sk_free()
977 sk, __func__, refcount_read(&sk->sk_refcnt)); in llc_sk_free()
/kernel/linux/linux-6.6/net/llc/
H A Dllc_conn.c496 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_established()
559 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_listener()
989 if (refcount_read(&sk->sk_refcnt) != 1) { in llc_sk_free()
991 sk, __func__, refcount_read(&sk->sk_refcnt)); in llc_sk_free()
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c104 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c102 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()

Completed in 14 milliseconds

1234