Home
last modified time | relevance | path

Searched refs:sk_refcnt (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.1.9/net/mptcp/
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()
Dtoken.c259 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock()
318 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
Dmptcp_diag.c122 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_diag_dump_listeners()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_iter_netlink.c47 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
Dbpf_iter_unix.c42 sk->sk_refcnt.refs.counter, in dump_unix()
Dbpf_iter_udp4.c66 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
Dbpf_iter_udp6.c74 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
Dbpf_tracing_net.h76 #define sk_refcnt __sk_common.skc_refcnt macro
Dbpf_iter_tcp4.c133 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
Dbpf_iter_tcp6.c137 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
/linux-6.1.9/net/netfilter/
Dnf_queue.c103 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs()
187 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in __nf_queue()
/linux-6.1.9/net/ipv4/
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()
Draw_diag.c78 if (refcount_inc_not_zero(&sk->sk_refcnt)) in raw_sock_get()
/linux-6.1.9/net/llc/
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()
977 if (refcount_read(&sk->sk_refcnt) != 1) { in llc_sk_free()
979 sk, __func__, refcount_read(&sk->sk_refcnt)); in llc_sk_free()
Dllc_sap.c327 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in llc_lookup_dgram()
/linux-6.1.9/net/ipv6/
Dinet6_hashtables.c74 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established()
237 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
/linux-6.1.9/include/linux/can/
Dskb.h80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/linux-6.1.9/include/net/
Dsock.h361 #define sk_refcnt __sk_common.skc_refcnt macro
771 refcount_inc(&sk->sk_refcnt); in sock_hold()
779 refcount_dec(&sk->sk_refcnt); in __sock_put()
788 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_del_node_init()
810 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_nulls_del_node_init_rcu()
1373 if (refcount_read(&sk->sk_refcnt) != 1) in sk_refcnt_debug_release()
1375 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1986 if (refcount_dec_and_test(&sk->sk_refcnt)) in sock_put()
2424 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_sk_safe()
Drequest_sock.h97 if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) { in reqsk_alloc()
Dinet_hashtables.h426 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
/linux-6.1.9/net/ipv4/netfilter/
Dnf_tproxy_ipv4.c101 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
/linux-6.1.9/net/ipv6/netfilter/
Dnf_tproxy_ipv6.c103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()
/linux-6.1.9/net/rds/
Dbind.c82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
/linux-6.1.9/net/l2tp/
Dl2tp_debugfs.c165 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
/linux-6.1.9/net/core/
Dbpf_sk_storage.c278 refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_5()
299 if (refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_2()

12