/linux/net/mptcp/ |
H A D | token_test.c | 59 refcount_set(&((struct sock *)msk)->sk_refcnt, 1); in build_msk() 88 KUNIT_EXPECT_EQ(test, 2, (int)refcount_read(&sk->sk_refcnt)); in mptcp_token_test_msk_basic() 128 refcount_set(&sk->sk_refcnt, 0); in mptcp_token_test_destroyed()
|
H A D | token.c | 263 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()
|
H A D | mptcp_diag.c | 121 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_diag_dump_listeners()
|
/linux/net/netfilter/ |
H A D | nf_queue.c | 101 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()
|
/linux/net/ipv4/ |
H A D | udp_diag.c | 54 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()
|
H A D | raw_diag.c | 77 if (refcount_inc_not_zero(&sk->sk_refcnt)) in raw_sock_get()
|
H A D | inet_timewait_sock.c | 338 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in inet_twsk_purge()
|
H A D | ping.c | 288 pr_debug("isk->refcnt = %d\n", refcount_read(&sk->sk_refcnt)); in ping_close() 1131 refcount_read(&sp->sk_refcnt), sp, in ping_v4_format_sock()
|
H A D | inet_hashtables.c | 473 if (!refcount_dec_and_test(&sk->sk_refcnt)) in sock_gen_put() 513 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet_lookup_established()
|
/linux/net/llc/ |
H A D | llc_conn.c | 496 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()
|
H A D | llc_sap.c | 331 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in llc_lookup_dgram()
|
/linux/net/ipv6/ |
H A D | inet6_hashtables.c | 74 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established() 258 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
|
/linux/include/linux/can/ |
H A D | skb.h | 80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_tracing_net.h | 123 #define sk_refcnt __sk_common.skc_refcnt macro
|
/linux/net/ipv4/netfilter/ |
H A D | nf_tproxy_ipv4.c | 103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
|
/linux/include/net/ |
H A D | sock.h | 350 #define sk_refcnt __sk_common.skc_refcnt macro 781 refcount_inc(&sk->sk_refcnt); in sock_hold() 789 refcount_dec(&sk->sk_refcnt); in __sock_put() 798 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_del_node_init() 820 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_nulls_del_node_init_rcu() 1775 if (refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_edemux() 1913 if (refcount_dec_and_test(&sk->sk_refcnt)) in sock_put() 2354 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_sk_safe()
|
H A D | inet_hashtables.h | 442 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
|
/linux/net/ipv6/netfilter/ |
H A D | nf_tproxy_ipv6.c | 103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()
|
/linux/net/rds/ |
H A D | bind.c | 82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
|
/linux/net/core/ |
H A D | bpf_sk_storage.c | 246 refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_5() 267 if (refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_2()
|
H A D | sock_reuseport.c | 668 if (IS_ERR_OR_NULL(nsk) || unlikely(!refcount_inc_not_zero(&nsk->sk_refcnt))) { in reuseport_migrate_sock()
|
/linux/net/l2tp/ |
H A D | l2tp_debugfs.c | 164 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
|
/linux/net/atm/ |
H A D | proc.c | 201 refcount_read(&sk->sk_refcnt)); in vcc_info()
|
/linux/net/phonet/ |
H A D | socket.c | 589 refcount_read(&sk->sk_refcnt), sk, in pn_sock_seq_show()
|
/linux/net/bluetooth/ |
H A D | af_bluetooth.c | 728 refcount_read(&sk->sk_refcnt), in bt_seq_show()
|