Home
last modified time | relevance | path

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

12

/Linux-v5.10/net/mptcp/
Dtoken_test.c57 refcount_set(&((struct sock *)msk)->sk_refcnt, 1); in build_msk()
78 KUNIT_EXPECT_EQ(test, 2, (int)refcount_read(&sk->sk_refcnt)); in mptcp_token_test_msk_basic()
118 refcount_set(&sk->sk_refcnt, 0); in mptcp_token_test_destroyed()
Dtoken.c257 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock()
314 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_netlink.c48 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
Dbpf_tracing_net.h37 #define sk_refcnt __sk_common.skc_refcnt macro
Dbpf_iter_udp4.c67 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
Dbpf_iter_udp6.c75 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
Dbpf_iter_tcp4.c134 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
Dbpf_iter_tcp6.c138 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
/Linux-v5.10/net/ipv4/
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()
Dinet_hashtables.c372 if (!refcount_dec_and_test(&sk->sk_refcnt)) in sock_gen_put()
413 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet_lookup_established()
Dping.c288 pr_debug("isk->refcnt = %d\n", refcount_read(&sk->sk_refcnt)); in ping_close()
1110 refcount_read(&sp->sk_refcnt), sp, in ping_v4_format_sock()
/Linux-v5.10/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()
975 if (refcount_read(&sk->sk_refcnt) != 1) { in llc_sk_free()
977 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-v5.10/net/ipv6/
Dinet6_hashtables.c76 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established()
240 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
/Linux-v5.10/net/ipv4/netfilter/
Dnf_tproxy_ipv4.c102 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
/Linux-v5.10/include/net/
Dsock.h355 #define sk_refcnt __sk_common.skc_refcnt macro
692 refcount_inc(&sk->sk_refcnt); in sock_hold()
700 refcount_dec(&sk->sk_refcnt); in __sock_put()
709 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_del_node_init()
731 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_nulls_del_node_init_rcu()
1257 if (refcount_read(&sk->sk_refcnt) != 1) in sk_refcnt_debug_release()
1259 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1778 if (refcount_dec_and_test(&sk->sk_refcnt)) in sock_put()
Drequest_sock.h96 if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) { in reqsk_alloc()
Dinet_hashtables.h376 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
/Linux-v5.10/net/ipv6/netfilter/
Dnf_tproxy_ipv6.c102 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()
/Linux-v5.10/net/rds/
Dbind.c82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
/Linux-v5.10/net/core/
Dbpf_sk_storage.c285 refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_4()
305 if (refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_2()
/Linux-v5.10/net/l2tp/
Dl2tp_debugfs.c167 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
/Linux-v5.10/net/atm/
Dproc.c201 refcount_read(&sk->sk_refcnt)); in vcc_info()
/Linux-v5.10/net/bluetooth/
Daf_bluetooth.c655 refcount_read(&sk->sk_refcnt), in bt_seq_show()
/Linux-v5.10/net/phonet/
Dsocket.c593 refcount_read(&sk->sk_refcnt), sk, in pn_sock_seq_show()

12