Home
last modified time | relevance | path

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

12

/linux/net/mptcp/
A Dtoken_test.c58 refcount_set(&((struct sock *)msk)->sk_refcnt, 1); in build_msk()
80 KUNIT_EXPECT_EQ(test, 2, (int)refcount_read(&sk->sk_refcnt)); in mptcp_token_test_msk_basic()
120 refcount_set(&sk->sk_refcnt, 0); in mptcp_token_test_destroyed()
A Dtoken.c259 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_get_sock()
318 if (!refcount_inc_not_zero(&sk->sk_refcnt)) in mptcp_token_iter_next()
/linux/tools/testing/selftests/bpf/progs/
A Dbpf_iter_netlink.c47 nlk->cb_running, s->sk_refcnt.refs.counter); in dump_netlink()
A Dbpf_iter_unix.c42 sk->sk_refcnt.refs.counter, in dump_unix()
A Dbpf_tracing_net.h47 #define sk_refcnt __sk_common.skc_refcnt macro
A Dbpf_iter_udp4.c66 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp4()
A Dbpf_iter_udp6.c74 inet->sk.sk_refcnt.refs.counter, udp_sk, in dump_udp6()
A Dbpf_iter_tcp4.c133 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
A Dbpf_iter_tcp6.c137 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
/linux/net/llc/
A Dllc_conn.c491 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_established()
550 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in __llc_lookup_listener()
977 if (refcount_read(&sk->sk_refcnt) != 1) { in llc_sk_free()
979 sk, __func__, refcount_read(&sk->sk_refcnt)); in llc_sk_free()
A Dllc_sap.c327 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in llc_lookup_dgram()
/linux/net/ipv4/
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()
A Dinet_hashtables.c374 if (!refcount_dec_and_test(&sk->sk_refcnt)) in sock_gen_put()
415 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet_lookup_established()
A Dping.c288 pr_debug("isk->refcnt = %d\n", refcount_read(&sk->sk_refcnt)); in ping_close()
1114 refcount_read(&sp->sk_refcnt), sp, in ping_v4_format_sock()
/linux/include/net/
A Dsock.h362 #define sk_refcnt __sk_common.skc_refcnt macro
708 refcount_inc(&sk->sk_refcnt); in sock_hold()
716 refcount_dec(&sk->sk_refcnt); in __sock_put()
725 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_del_node_init()
747 WARN_ON(refcount_read(&sk->sk_refcnt) == 1); in sk_nulls_del_node_init_rcu()
1288 if (refcount_read(&sk->sk_refcnt) != 1) in sk_refcnt_debug_release()
1290 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1877 if (refcount_dec_and_test(&sk->sk_refcnt)) in sock_put()
2320 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_sk_safe()
A Drequest_sock.h96 if (unlikely(!refcount_inc_not_zero(&sk_listener->sk_refcnt))) { in reqsk_alloc()
A Dinet_hashtables.h382 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet_lookup()
/linux/net/ipv6/
A Dinet6_hashtables.c76 if (unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in __inet6_lookup_established()
240 if (sk && !refcounted && !refcount_inc_not_zero(&sk->sk_refcnt)) in inet6_lookup()
/linux/include/linux/can/
A Dskb.h74 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
/linux/net/ipv4/netfilter/
A Dnf_tproxy_ipv4.c102 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v4()
/linux/net/ipv6/netfilter/
A Dnf_tproxy_ipv6.c102 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in nf_tproxy_get_sock_v6()
/linux/net/rds/
A Dbind.c82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
/linux/net/core/
A Dbpf_sk_storage.c274 refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_4()
294 if (refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_2()
/linux/net/l2tp/
A Dl2tp_debugfs.c167 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
/linux/net/atm/
A Dproc.c201 refcount_read(&sk->sk_refcnt)); in vcc_info()

Completed in 42 milliseconds

12