| /linux/net/mptcp/ |
| H A D | token_test.c | 59 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 D | token.c | 263 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 D | nf_queue.c | 101 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 D | llc_conn.c | 496 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 D | llc_sap.c | 331 if (unlikely(!refcount_inc_not_zero(&rc->sk_refcnt))) in llc_lookup_dgram()
|
| /linux/include/linux/can/ |
| H A D | skb.h | 80 if (sk && refcount_inc_not_zero(&sk->sk_refcnt)) { in can_skb_set_owner()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_tracing_net.h | 128 #define sk_refcnt __sk_common.skc_refcnt 124 #define sk_refcnt global() macro
|
| H A D | bpf_iter_tcp4.c | 133 sp->sk_refcnt.refs.counter); in dump_tcp_sock()
|
| H A D | bpf_iter_tcp6.c | 137 sp->sk_refcnt.refs.counter); in dump_tcp6_sock()
|
| /linux/net/rds/ |
| H A D | bind.c | 82 !refcount_inc_not_zero(&rds_rs_to_sk(rs)->sk_refcnt))) in rds_find_bound()
|
| /linux/include/net/ |
| H A D | sock.h | 367 #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 D | bpf_sk_storage.c | 242 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 D | sock_reuseport.c | 668 if (IS_ERR_OR_NULL(nsk) || unlikely(!refcount_inc_not_zero(&nsk->sk_refcnt))) { in reuseport_migrate_sock()
|
| H A D | sock_map.c | 395 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 D | sock.c | 2199 * 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 D | skbuff.c | 5508 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 D | filter.c | 7701 unlikely(!refcount_inc_not_zero(&sk->sk_refcnt))) in BPF_CALL_3()
|
| /linux/net/l2tp/ |
| H A D | l2tp_debugfs.c | 164 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show()
|
| /linux/net/atm/ |
| H A D | proc.c | 201 refcount_read(&sk->sk_refcnt)); in vcc_info()
|
| /linux/net/sched/ |
| H A D | em_meta.c | 342 dst->value = refcount_read(&skb->sk->sk_refcnt); in META_COLLECTOR()
|
| /linux/net/bluetooth/ |
| H A D | af_bluetooth.c | 822 refcount_read(&sk->sk_refcnt), in bt_seq_show()
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 197 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 D | udp.c | 783 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 D | tcp_ipv6.c | 1788 /* reuseport_migrate_sock() has already held one sk_refcnt 2205 refcount_read(&sp->sk_refcnt), sp,
|
| /linux/net/key/ |
| H A D | af_key.c | 3788 refcount_read(&s->sk_refcnt), in pfkey_seq_show()
|