Searched refs:test_fd (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/mm/ |
H A D | soft-dirty.c | 131 int test_fd; in test_mprotect() local 140 test_fd = open(fname, O_RDWR | O_CREAT, 0664); in test_mprotect() 141 if (test_fd < 0) { in test_mprotect() 146 ftruncate(test_fd, pagesize); in test_mprotect() 148 MAP_SHARED, test_fd, 0); in test_mprotect() 177 close(test_fd); in test_mprotect()
|
H A D | protection_keys.c | 939 int test_fd = open("/etc/passwd", O_RDONLY); in get_test_read_fd() local 940 __save_test_fd(test_fd); in get_test_read_fd() 941 return test_fd; in get_test_read_fd() 1088 int test_fd = get_test_read_fd(); in test_kernel_write_of_access_disabled_region() local 1093 ret = read(test_fd, ptr, 1); in test_kernel_write_of_access_disabled_region() 1100 int test_fd = get_test_read_fd(); in test_kernel_write_of_write_disabled_region() local 1103 ret = read(test_fd, ptr, 100); in test_kernel_write_of_write_disabled_region()
|
/linux/tools/testing/selftests/net/ |
H A D | reuseport_addr_any.c | 247 int test_fd; in test_proto() local 249 test_fd = socket(AF_INET, proto, 0); in test_proto() 250 if (test_fd < 0) { in test_proto() 257 close(test_fd); in test_proto()
|
H A 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()
|