Lines Matching refs:test_desc_fd
1802 static int child_f(unsigned int nr, int test_desc_fd, int cmd_fd, void *buf) in child_f() argument
1828 ssize_t received = read(test_desc_fd, &desc, sizeof(desc)); in child_f()
1954 static int start_child(unsigned int nr, char *veth, int test_desc_fd[2]) in start_child()
1975 if (close(test_desc_fd[1])) { in start_child()
2004 return child_f(nr, test_desc_fd[0], cmd_sock[1], data_map); in start_child()
2019 static int __write_desc(int test_desc_fd, struct xfrm_desc *desc) in __write_desc() argument
2023 ret = write(test_desc_fd, desc, sizeof(*desc)); in __write_desc()
2033 static int write_desc(int proto, int test_desc_fd, in write_desc() argument
2050 return __write_desc(test_desc_fd, &desc); in write_desc()
2141 static int write_compat_struct_tests(int test_desc_fd) in write_compat_struct_tests() argument
2149 if (__write_desc(test_desc_fd, &desc)) in write_compat_struct_tests()
2153 if (__write_desc(test_desc_fd, &desc)) in write_compat_struct_tests()
2157 if (__write_desc(test_desc_fd, &desc)) in write_compat_struct_tests()
2161 if (__write_desc(test_desc_fd, &desc)) in write_compat_struct_tests()
2165 if (__write_desc(test_desc_fd, &desc)) in write_compat_struct_tests()
2171 static int write_test_plan(int test_desc_fd) in write_test_plan() argument
2182 if (close(test_desc_fd)) in write_test_plan()
2187 if (write_compat_struct_tests(test_desc_fd)) in write_test_plan()
2191 if (write_proto_plan(test_desc_fd, proto_list[i])) in write_test_plan()
2268 int test_desc_fd[2]; in main() local
2299 if (pipe2(test_desc_fd, O_DIRECT) < 0) in main()
2321 if (start_child(i, veth, test_desc_fd)) { in main()
2327 if (close(route_sock) || close(test_desc_fd[0]) || close(results_fd[1])) in main()
2332 if (write_test_plan(test_desc_fd[1])) in main()