Home
last modified time | relevance | path

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

/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()
/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/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/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.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/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.h367 #define sk_refcnt __sk_common.skc_refcnt macro
826 refcount_inc(&sk->sk_refcnt); in sock_hold()
834 refcount_dec(&sk->sk_refcnt); in __sock_put()
1855 if (refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_edemux()
1997 if (refcount_dec_and_test(&sk->sk_refcnt)) in sock_put()
2449 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in skb_set_owner_sk_safe()
/linux/net/core/
H A Dbpf_sk_storage.c242 refcount_inc_not_zero(&sk->sk_refcnt)) { in BPF_CALL_5()
263 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()
H A Dsock.c2199 * Copy all fields from osk to nsk but nsk->sk_refcnt must not change yet, in sock_copy()
2578 /* Before updating sk_refcnt, we must commit prior changes to memory in sk_clone_lock()
2582 refcount_set(&newsk->sk_refcnt, 2); in sk_clone_lock()
3758 * Before updating sk_refcnt, we must commit prior changes to memory in __lock_sock_fast()
3762 refcount_set(&sk->sk_refcnt, 1); in __lock_sock_fast()
H A Dskbuff.c5508 if (!sk || !refcount_inc_not_zero(&sk->sk_refcnt)) in skb_clone_sk()
5578 if (likely(refcount_inc_not_zero(&sk->sk_refcnt))) { in skb_complete_tx_timestamp()
5728 if (likely(refcount_inc_not_zero(&sk->sk_refcnt))) { in skb_complete_wifi_ack()
H A Dfilter.c7701 unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in BPF_CALL_3()
/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/sched/
H A Dem_meta.c342 dst->value = refcount_read(&skb->sk->sk_refcnt); in META_COLLECTOR()
/linux/net/bluetooth/
H A Daf_bluetooth.c822 refcount_read(&sk->sk_refcnt), in bt_seq_show()
/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/ipv4/
H A Dudp.c783 if (sk && !refcount_inc_not_zero(&sk->sk_refcnt)) in udp4_lib_lookup()
3417 refcount_read(&sp->sk_refcnt), sp, in udp4_format_sock()
/linux/net/ipv6/
H A Dtcp_ipv6.c1788 /* reuseport_migrate_sock() has already held one sk_refcnt
2205 refcount_read(&sp->sk_refcnt), sp,
/linux/net/key/
H A Daf_key.c3788 refcount_read(&s->sk_refcnt), in pfkey_seq_show()