Home
last modified time | relevance | path

Searched refs:sk_refcnt (Results 1 – 25 of 33) 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/llc/
H A Dllc_conn.c496 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 Dllc_sap.c331 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in llc_lookup_dgram()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_tracing_net.h128 #define sk_refcnt __sk_common.skc_refcnt
124 #define sk_refcnt global() 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/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.c1080 refcount_read(&sp->sk_refcnt), sp, in __ip6_dgram_sock_seq_show()
/linux/net/rds/
H A Dbind.c82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
/linux/include/net/
H A Dsock.h373 #define sk_refcnt __sk_common.skc_refcnt macro
839 refcount_inc(&sk->sk_refcnt); in sock_hold()
847 refcount_dec(&sk->sk_refcnt); in __sock_put()
1867 if (refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_edemux()
2009 if (refcount_dec_and_test(&sk->sk_refcnt)) in sock_put()
2461 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_sk_safe()
H A Dinet_hashtables.h440 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
/linux/net/core/
H A Dbpf_sk_storage.c249 refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_4()
270 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()
H A Dsock_map.c395 if (sk_is_refcounted(sk) && !refcount_inc_not_zero(&sk->sk_refcnt)) in sock_map_lookup()
1219 if (sk_is_refcounted(sk) && !refcount_inc_not_zero(&sk->sk_refcnt)) in sock_hash_lookup()
/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/atm/
H A Dproc.c190 refcount_read(&sk->sk_refcnt)); in vcc_info()
/linux/net/ipv4/
H A Dinet_hashtables.c514 if (!refcount_dec_and_test(&sk->sk_refcnt)) in sock_gen_put()
555 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet_lookup_established()
H A Dtcp_diag.c523 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in tcp_diag_dump()
H A Dinet_connection_sock.c861 if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) { in reqsk_alloc_noprof()
H A Dudp.c769 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in udp4_lib_lookup()
3263 refcount_read(&sp->sk_refcnt), sp, in udp4_format_sock()
/linux/net/phonet/
H A Dsocket.c595 refcount_read(&sk->sk_refcnt), sk, in pn_sock_seq_show()
/linux/net/sched/
H A Dem_meta.c342 dst->value = refcount_read(&skb->sk->sk_refcnt); in META_COLLECTOR()
/linux/net/bluetooth/rfcomm/
H A Dsock.c197 BT_DBG("sk %p state %d refcnt %d", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rfcomm_sock_kill()
/linux/net/rxrpc/
H A Daf_rxrpc.c929 _enter("%p{%d,%d}", sk, sk->sk_state, refcount_read(&sk->sk_refcnt)); in rxrpc_release_sock()
/linux/net/netlink/
H A Daf_netlink.c711 if (!refcount_dec_and_test(&sk->sk_refcnt)) in deferred_put_nlk_sk()
2711 refcount_read(&s->sk_refcnt), in netlink_native_seq_show()

12