Searched refs:results_fd (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/testing/selftests/bpf/
H A Dtest_tcp_check_syncookie_user.c59 static int run_test(int server_fd, int results_fd, bool xdp) argument
70 if (bpf_map_update_elem(results_fd, &key, &value, 0) < 0) {
75 if (bpf_map_update_elem(results_fd, &key_gen, &value_gen, 0) < 0) {
80 if (bpf_map_update_elem(results_fd, &key_mss, &value_mss, 0) < 0) {
95 if (bpf_map_lookup_elem(results_fd, &key, &value) < 0) {
105 if (bpf_map_lookup_elem(results_fd, &key_gen, &value_gen) < 0) {
117 if (bpf_map_lookup_elem(results_fd, &key_mss, &value_mss) < 0) {
/linux-master/tools/testing/selftests/net/
H A Dipsec.c71 * results_fd is a pipe with test feedback from children.
73 static int results_fd[2]; variable
581 ret = write(results_fd[1], &tr, sizeof(tr));
2235 ssize_t received = read(results_fd[0], &tr, sizeof(tr));
2302 if (pipe2(results_fd, O_DIRECT) < 0)
2327 if (close(route_sock) || close(test_desc_fd[0]) || close(results_fd[1]))

Completed in 106 milliseconds