Home
last modified time | relevance | path

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

/Linux-v5.15/net/core/
Dsock_reuseport.c39 if (reuse->socks[left] == sk) in reuseport_sock_index()
47 reuse->socks[reuse->num_socks] = sk; in __reuseport_add_sock()
61 reuse->socks[i] = reuse->socks[reuse->num_socks - 1]; in __reuseport_detach_sock()
70 reuse->socks[reuse->max_socks - reuse->num_closed_socks - 1] = sk; in __reuseport_add_closed_sock()
83 reuse->socks[i] = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in __reuseport_detach_closed_sock()
151 reuse->socks[0] = sk; in reuseport_alloc()
176 sk = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in reuseport_grow()
197 memcpy(more_reuse->socks, reuse->socks, in reuseport_grow()
199 memcpy(more_reuse->socks + in reuseport_grow()
201 reuse->socks + (reuse->max_socks - reuse->num_closed_socks), in reuseport_grow()
[all …]
/Linux-v5.15/drivers/block/
Dnbd.c93 struct nbd_sock **socks; member
374 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown()
427 if (config->socks) { in nbd_xmit_timeout()
430 config->socks[cmd->index]; in nbd_xmit_timeout()
454 struct nbd_sock *nsock = config->socks[cmd->index]; in nbd_xmit_timeout()
493 struct socket *sock = config->socks[index]->sock; in sock_xmit()
549 struct nbd_sock *nsock = config->socks[index]; in nbd_send_cmd()
809 struct nbd_sock *nsock = config->socks[args->index]; in recv_work()
855 struct nbd_sock *nsock = config->socks[index]; in find_fallback()
868 !config->socks[fallback]->dead) in find_fallback()
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dbpf_iter_sockmap.c33 __u32 socks = 0; variable
53 socks++; in copy()
/Linux-v5.15/kernel/bpf/
Dreuseport_array.c28 struct sock __rcu **socks; in bpf_sk_reuseport_detach() local
30 socks = (void *)(sk_user_data & SK_USER_DATA_PTRMASK); in bpf_sk_reuseport_detach()
38 RCU_INIT_POINTER(*socks, NULL); in bpf_sk_reuseport_detach()
/Linux-v5.15/include/net/
Dsock_reuseport.h28 struct sock *socks[]; /* array of sock pointers */ member
Dsock.h1258 atomic_t socks; member
1270 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1275 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1277 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dsockmap_basic.c266 if (CHECK(skel->bss->socks != num_sockets, "socks", "got %u expected %u\n", in test_sockmap_copy()
267 skel->bss->socks, num_sockets)) in test_sockmap_copy()