Home
last modified time | relevance | path

Searched refs:socks (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/net/core/
Dsock_reuseport.c119 if (reuse->socks[left] == sk) in reuseport_sock_index()
127 reuse->socks[reuse->num_socks] = sk; in __reuseport_add_sock()
142 reuse->socks[i] = reuse->socks[reuse->num_socks - 1]; in __reuseport_detach_sock()
152 reuse->socks[reuse->max_socks - reuse->num_closed_socks - 1] = sk; in __reuseport_add_closed_sock()
166 reuse->socks[i] = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in __reuseport_detach_closed_sock()
235 reuse->socks[0] = sk; in reuseport_alloc()
261 sk = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in reuseport_grow()
283 memcpy(more_reuse->socks, reuse->socks, in reuseport_grow()
285 memcpy(more_reuse->socks + in reuseport_grow()
287 reuse->socks + (reuse->max_socks - reuse->num_closed_socks), in reuseport_grow()
[all …]
/linux-6.1.9/drivers/block/
Dnbd.c95 struct nbd_sock **socks; member
372 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown()
430 if (config->socks) { in nbd_xmit_timeout()
433 config->socks[cmd->index]; in nbd_xmit_timeout()
457 struct nbd_sock *nsock = config->socks[cmd->index]; in nbd_xmit_timeout()
498 struct socket *sock = config->socks[index]->sock; in sock_xmit()
554 struct nbd_sock *nsock = config->socks[index]; in nbd_send_cmd()
871 nsock = config->socks[args->index]; in recv_work()
914 struct nbd_sock *nsock = config->socks[index]; in find_fallback()
927 !config->socks[fallback]->dead) in find_fallback()
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_iter_sockmap.c33 __u32 socks = 0; variable
53 socks++; in copy()
/linux-6.1.9/kernel/bpf/
Dreuseport_array.c24 struct sock __rcu **socks; in bpf_sk_reuseport_detach() local
27 socks = __locked_read_sk_user_data_with_flags(sk, SK_USER_DATA_BPF); in bpf_sk_reuseport_detach()
28 if (socks) { in bpf_sk_reuseport_detach()
36 RCU_INIT_POINTER(*socks, NULL); in bpf_sk_reuseport_detach()
/linux-6.1.9/include/net/
Dsock_reuseport.h29 struct sock *socks[]; /* array of sock pointers */ member
Dsock.h1349 atomic_t socks; member
1361 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1366 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1368 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dsockmap_basic.c251 if (!ASSERT_EQ(skel->bss->socks, num_sockets, "socks")) in test_sockmap_copy()