Searched refs:test_fd (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/tools/testing/selftests/net/ |
D | reuseport_addr_any.c | 243 int test_fd; in test_proto() local 245 test_fd = socket(AF_INET, proto, 0); in test_proto() 246 if (test_fd < 0) { in test_proto() 253 close(test_fd); in test_proto()
|
D | reuseport_dualstack.c | 131 int epfd, i, test_fd; in test() local 148 test_fd = receive_once(epfd, proto); in test() 150 if (getsockopt(test_fd, SOL_SOCKET, SO_DOMAIN, &test_family, &len)) in test()
|
/Linux-v5.4/tools/testing/selftests/x86/ |
D | protection_keys.c | 975 int test_fd = open("/etc/passwd", O_RDONLY); in get_test_read_fd() local 976 __save_test_fd(test_fd); in get_test_read_fd() 977 return test_fd; in get_test_read_fd() 1041 int test_fd = get_test_read_fd(); in test_kernel_write_of_access_disabled_region() local 1046 ret = read(test_fd, ptr, 1); in test_kernel_write_of_access_disabled_region() 1053 int test_fd = get_test_read_fd(); in test_kernel_write_of_write_disabled_region() local 1056 ret = read(test_fd, ptr, 100); in test_kernel_write_of_write_disabled_region()
|