Lines Matching refs:fds
89 static int get_seen_socket(int *fds, struct sock_count counts[], int n) in get_seen_socket() argument
94 if (was_seen(fds[i], counts, n)) in get_seen_socket()
99 static int get_nth_socket(int *fds, int fds_len, struct bpf_link *link, int n) in get_nth_socket() argument
116 if (fds[i] >= 0 && socket_cookie(fds[i]) == out.cookie) in get_nth_socket()
175 static void check_n_were_seen_once(int *fds, int fds_len, int n, in check_n_were_seen_once() argument
186 if (fds[i] < 0) in check_n_were_seen_once()
188 seen_cnt = get_seen_count(fds[i], counts, counts_len); in check_n_were_seen_once()
785 int *fds = NULL; in do_resume_test() local
807 fds = start_reuseport_server(tc->family, tc->sock_type, addr, port, 0, in do_resume_test()
809 if (!ASSERT_OK_PTR(fds, "start_reuseport_server")) in do_resume_test()
814 tc->connections, fds, in do_resume_test()
839 tc->test(tc->family, tc->sock_type, addr, port, fds, tc->init_socks, in do_resume_test()
847 free_fds(fds, tc->init_socks); in do_resume_test()
873 int *fds[2] = {}; in do_test() local
880 for (i = 0; i < ARRAY_SIZE(fds); i++) { in do_test()
883 fds[i] = start_reuseport_server(AF_INET6, sock_type, "::1", 0, 0, in do_test()
885 if (!ASSERT_OK_PTR(fds[i], "start_reuseport_server")) in do_test()
887 local_port = get_socket_local_port(*fds[i]); in do_test()
933 free_fds(fds[first_idx], nr_soreuse); in do_test()
934 fds[first_idx] = NULL; in do_test()
961 for (i = 0; i < ARRAY_SIZE(fds); i++) in do_test()
962 free_fds(fds[i], nr_soreuse); in do_test()