| /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()
|
| /linux/net/netfilter/ |
| H A D | nf_queue.c | 116 if (state->sk && !refcount_inc_not_zero(&state->sk->sk_refcnt)) in nf_queue_entry_get_refs() 202 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in __nf_queue()
|
| /linux/net/llc/ |
| H A D | llc_conn.c | 490 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_established() 553 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_listener() 982 if (refcount_read(&sk->sk_refcnt) != 1) { in llc_sk_free() 984 sk, __func__, refcount_read(&sk->sk_refcnt)); in llc_sk_free()
|
| /linux/net/ipv6/ |
| H A D | inet6_hashtables.c | 108 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established() 294 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
|
| H A D | datagram.c | 1118 refcount_read(&sp->sk_refcnt), sp, in __ip6_dgram_sock_seq_show()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_tracing_net.h | 133 #define sk_refcnt __sk_common.skc_refcnt macro
|
| H A D | bpf_iter_tcp4.c | 133 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
|
| H A D | bpf_iter_tcp6.c | 137 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
|
| /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/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/core/ |
| H A D | bpf_sk_storage.c | 247 refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_4() 268 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/include/net/ |
| H A D | inet_hashtables.h | 440 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
|
| /linux/net/phonet/ |
| H A D | socket.c | 595 refcount_read(&sk->sk_refcnt), sk, in pn_sock_seq_show()
|
| /linux/net/ipv4/ |
| H A D | tcp_diag.c | 523 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in tcp_diag_dump()
|
| H A D | raw.c | 1064 refcount_read(&sp->sk_refcnt), sp, sk_drops_read(sp)); in raw_sock_seq_show()
|
| H A D | tcp_ipv4.c | 172 /* inet_twsk_hashdance_schedule() sets sk_refcnt after putting twsk in tcp_twsk_unique() 175 if (unlikely(!refcount_inc_not_zero(&sktw->sk_refcnt))) in tcp_twsk_unique() 2150 /* reuseport_migrate_sock() has already held one sk_refcnt 2824 refcount_read(&sk->sk_refcnt), sk, 3090 /* reqsk_queue_hash_req() inserts with sk_refcnt == 0 3093 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt)))
|
| H A D | inet_connection_sock.c | 860 if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) { in reqsk_alloc_noprof()
|
| /linux/net/sched/ |
| H A D | em_meta.c | 342 dst->value = refcount_read(&skb->sk->sk_refcnt); in META_COLLECTOR()
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_net.c | 638 if (refcount_read(&sk->sk_refcnt) > SK_REF_FOR_TUNNEL) { in rxe_sock_put()
|
| /linux/net/bluetooth/ |
| H A D | af_bluetooth.c | 864 refcount_read(&sk->sk_refcnt), in bt_seq_show()
|
| /linux/net/rxrpc/ |
| H A D | af_rxrpc.c | 931 _enter("%p{%d,%d}", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rxrpc_release_sock()
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 208 BT_DBG("sk %p state %d refcnt %d", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rfcomm_sock_kill()
|
| /linux/drivers/net/ppp/ |
| H A D | pppoe.c | 233 if (po && !refcount_inc_not_zero(&po->sk.sk_refcnt)) in get_item()
|
| /linux/net/netlink/ |
| H A D | af_netlink.c | 712 if (!refcount_dec_and_test(&sk->sk_refcnt)) in deferred_put_nlk_sk() 2717 refcount_read(&s->sk_refcnt), in netlink_native_seq_show()
|