Home
last modified time | relevance | path

Searched refs:sk_refcnt (Results 1 – 25 of 41) 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()
H A Dtoken.c263 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 Dmptcp_diag.c121 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_diag_dump_listeners()
/linux/net/netfilter/
H A Dnf_queue.c101 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 Dudp_diag.c54 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 Draw_diag.c77 if (refcount_inc_not_zero(&sk->sk_refcnt)) in raw_sock_get()
H A Dinet_timewait_sock.c338 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in inet_twsk_purge()
H A Dping.c288 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 Dinet_hashtables.c473 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 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/net/ipv6/
H A Dinet6_hashtables.c74 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 Dskb.h80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_tracing_net.h123 #define sk_refcnt __sk_common.skc_refcnt macro
/linux/net/ipv4/netfilter/
H A Dnf_tproxy_ipv4.c103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
/linux/include/net/
H A Dsock.h350 #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 Dinet_hashtables.h442 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
/linux/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c103 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()
/linux/net/rds/
H A Dbind.c82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
/linux/net/core/
H A Dbpf_sk_storage.c246 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 Dsock_reuseport.c668 if (IS_ERR_OR_NULL(nsk) || unlikely(!refcount_inc_not_zero(&nsk->sk_refcnt))) { in reuseport_migrate_sock()
/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.c201 refcount_read(&sk->sk_refcnt)); in vcc_info()
/linux/net/phonet/
H A Dsocket.c589 refcount_read(&sk->sk_refcnt), sk, in pn_sock_seq_show()
/linux/net/bluetooth/
H A Daf_bluetooth.c728 refcount_read(&sk->sk_refcnt), in bt_seq_show()

12