Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dprotection_keys.c931 int test_fds[10] = { -1 }; variable
936 pkey_assert(nr_test_fds < ARRAY_SIZE(test_fds)); in __save_test_fd()
937 test_fds[nr_test_fds] = fd; in __save_test_fd()
953 if (test_fds[i] < 0) in close_test_fds()
955 close(test_fds[i]); in close_test_fds()
956 test_fds[i] = -1; in close_test_fds()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dprotection_keys.c923 int test_fds[10] = { -1 }; variable
928 pkey_assert(nr_test_fds < ARRAY_SIZE(test_fds)); in __save_test_fd()
929 test_fds[nr_test_fds] = fd; in __save_test_fd()
945 if (test_fds[i] < 0) in close_test_fds()
947 close(test_fds[i]); in close_test_fds()
948 test_fds[i] = -1; in close_test_fds()

Completed in 5 milliseconds