Home
last modified time | relevance | path

Searched refs:gup_fd (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/tools/testing/selftests/mm/
Dgup_test.c26 static int gup_fd, repeats = 1; variable
60 if (ioctl(gup_fd, cmd, &gup)) in gup_thread()
74 if (ioctl(gup_fd, cmd, &gup)) { in gup_thread()
211 gup_fd = open(GUP_TEST_FILE, O_RDWR); in main()
212 if (gup_fd == -1) { in main()
Dgup_longterm.c36 static int gup_fd; variable
138 if (gup_fd < 0) { in do_test()
159 ret = ioctl(gup_fd, PIN_LONGTERM_TEST_START, &args); in do_test()
171 if (ioctl(gup_fd, PIN_LONGTERM_TEST_STOP)) in do_test()
449 gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); in main()
Duffd-unit-tests.c252 int gup_fd; member
274 args->gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); in pin_pages()
275 if (args->gup_fd < 0) in pin_pages()
278 if (ioctl(args->gup_fd, PIN_LONGTERM_TEST_START, &test)) { in pin_pages()
280 close(args->gup_fd); in pin_pages()
291 if (ioctl(args->gup_fd, PIN_LONGTERM_TEST_STOP)) in unpin_pages()
293 close(args->gup_fd); in unpin_pages()
Dcow.c38 static int gup_fd; variable
526 if (gup_fd < 0) { in do_test_ro_pin()
603 ret = ioctl(gup_fd, PIN_LONGTERM_TEST_START, &args); in do_test_ro_pin()
620 ret = ioctl(gup_fd, PIN_LONGTERM_TEST_READ, &tmp_val); in do_test_ro_pin()
627 ret = ioctl(gup_fd, PIN_LONGTERM_TEST_STOP); in do_test_ro_pin()
1697 gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); in main()
Dhmm-tests.c1873 static int gup_test_exec(int gup_fd, unsigned long addr, int cmd, in gup_test_exec() argument
1883 if (ioctl(gup_fd, cmd, &gup)) { in gup_test_exec()
1901 int gup_fd; in TEST_F() local
1909 gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); in TEST_F()
1910 if (gup_fd == -1) in TEST_F()
1942 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1945 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1948 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1951 ASSERT_EQ(gup_test_exec(gup_fd, in TEST_F()
1976 close(gup_fd); in TEST_F()