Home
last modified time | relevance | path

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

12

/linux/net/mptcp/
H A Dtoken_test.c59 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 Dnf_queue.c116 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 Dllc_conn.c490 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 Dinet6_hashtables.c108 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 Ddatagram.c1118 refcount_read(&sp->sk_refcnt), sp, in __ip6_dgram_sock_seq_show()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_tracing_net.h133 #define sk_refcnt __sk_common.skc_refcnt macro
H A Dbpf_iter_tcp4.c133 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
H A Dbpf_iter_tcp6.c137 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
/linux/net/rds/
H A Dbind.c82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
/linux/net/l2tp/
H A Dl2tp_debugfs.c164 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
/linux/net/core/
H A Dbpf_sk_storage.c247 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 Dsock_reuseport.c668 if (IS_ERR_OR_NULL(nsk) || unlikely(!refcount_inc_not_zero(&nsk->sk_refcnt))) { in reuseport_migrate_sock()
/linux/include/net/
H A Dinet_hashtables.h440 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
/linux/net/phonet/
H A Dsocket.c595 refcount_read(&sk->sk_refcnt), sk, in pn_sock_seq_show()
/linux/net/ipv4/
H A Dtcp_diag.c523 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in tcp_diag_dump()
H A Draw.c1064 refcount_read(&sp->sk_refcnt), sp, sk_drops_read(sp)); in raw_sock_seq_show()
H A Dtcp_ipv4.c172 /* 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 Dinet_connection_sock.c860 if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) { in reqsk_alloc_noprof()
/linux/net/sched/
H A Dem_meta.c342 dst->value = refcount_read(&skb->sk->sk_refcnt); in META_COLLECTOR()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_net.c638 if (refcount_read(&sk->sk_refcnt) > SK_REF_FOR_TUNNEL) { in rxe_sock_put()
/linux/net/bluetooth/
H A Daf_bluetooth.c864 refcount_read(&sk->sk_refcnt), in bt_seq_show()
/linux/net/rxrpc/
H A Daf_rxrpc.c931 _enter("%p{%d,%d}", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rxrpc_release_sock()
/linux/net/bluetooth/rfcomm/
H A Dsock.c208 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 Dpppoe.c233 if (po && !refcount_inc_not_zero(&po->sk.sk_refcnt)) in get_item()
/linux/net/netlink/
H A Daf_netlink.c712 if (!refcount_dec_and_test(&sk->sk_refcnt)) in deferred_put_nlk_sk()
2717 refcount_read(&s->sk_refcnt), in netlink_native_seq_show()

12