Home
last modified time | relevance | path

Searched refs:test_fd (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/tools/testing/selftests/vm/
Dsoft-dirty.c128 int test_fd; in test_mprotect() local
137 test_fd = open(fname, O_RDWR | O_CREAT); in test_mprotect()
138 if (test_fd < 0) { in test_mprotect()
143 ftruncate(test_fd, pagesize); in test_mprotect()
145 MAP_SHARED, test_fd, 0); in test_mprotect()
174 close(test_fd); in test_mprotect()
Dprotection_keys.c943 int test_fd = open("/etc/passwd", O_RDONLY); in get_test_read_fd() local
944 __save_test_fd(test_fd); in get_test_read_fd()
945 return test_fd; in get_test_read_fd()
1102 int test_fd = get_test_read_fd(); in test_kernel_write_of_access_disabled_region() local
1107 ret = read(test_fd, ptr, 1); in test_kernel_write_of_access_disabled_region()
1114 int test_fd = get_test_read_fd(); in test_kernel_write_of_write_disabled_region() local
1117 ret = read(test_fd, ptr, 100); in test_kernel_write_of_write_disabled_region()
/Linux-v6.1/tools/testing/selftests/net/
Dreuseport_addr_any.c247 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()
Dreuseport_dualstack.c131 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()