Home
last modified time | relevance | path

Searched refs:epollfd (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/arch/um/os-Linux/
Dirq.c19 static int epollfd = -1; variable
62 epollfd = epoll_create(MAX_EPOLL_EVENTS); in os_setup_epoll()
63 return epollfd; in os_setup_epoll()
73 n = epoll_wait(epollfd, in os_waiting_for_events_epoll()
99 result = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &event); in os_add_epoll_fd()
117 result = epoll_ctl(epollfd, EPOLL_CTL_MOD, fd, &event); in os_mod_epoll_fd()
133 return epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event); in os_del_epoll_fd()
144 os_close_file(epollfd); in os_close_epoll_fd()
/linux-6.12.1/tools/perf/bench/
Depoll-wait.c102 static int epollfd; variable
120 int epollfd; /* for --multiq */ member
191 int efd = multiq ? w->epollfd : epollfd; in workerfn()
234 close(w->epollfd); in workerfn()
244 int efd = multiq ? w->epollfd : epollfd; in nest_epollfd()
321 w->epollfd = epoll_create(1); in do_threads()
322 if (w->epollfd < 0) in do_threads()
335 int efd = multiq ? w->epollfd : epollfd; in do_threads()
453 epollfd = epoll_create(1); in bench_epoll_wait()
454 if (epollfd < 0) in bench_epoll_wait()
[all …]
Depoll-ctl.c54 static int epollfd; variable
115 if (epollfd < 0) in nest_epollfd()
128 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, *epollfdp, &ev) < 0) in nest_epollfd()
142 error = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev); in do_epoll_op()
146 error = epoll_ctl(epollfd, EPOLL_CTL_MOD, fd, &ev); in do_epoll_op()
149 error = epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, NULL); in do_epoll_op()
218 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0) in init_fdmaps()
338 epollfd = epoll_create(1); in bench_epoll_ctl()
339 if (epollfd < 0) in bench_epoll_ctl()
423 close(epollfd); in bench_epoll_ctl()
/linux-6.12.1/tools/testing/selftests/kcmp/
Dkcmp_test.c38 int epollfd; in main() local
55 epollfd = epoll_create1(0); in main()
56 if (epollfd < 0) { in main()
64 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) { in main()
75 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fddup, &ev)) { in main()
142 .efd = epollfd, in main()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtest_struct_ops_module.c255 int fd, epollfd = -1, nfds; in test_detach_link() local
270 epollfd = epoll_create1(0); in test_detach_link()
271 if (!ASSERT_GE(epollfd, 0, "epoll_create1")) in test_detach_link()
276 err = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev); in test_detach_link()
285 nfds = epoll_wait(epollfd, events, 2, 500); in test_detach_link()
295 if (epollfd >= 0) in test_detach_link()
296 close(epollfd); in test_detach_link()
Dsockmap_basic.c458 int epollfd; in test_sockmap_skb_verdict_shutdown() local
485 epollfd = epoll_create1(0); in test_sockmap_skb_verdict_shutdown()
486 if (!ASSERT_GT(epollfd, -1, "epoll_create(0)")) in test_sockmap_skb_verdict_shutdown()
488 err = epoll_ctl(epollfd, EPOLL_CTL_ADD, c1, &ev); in test_sockmap_skb_verdict_shutdown()
491 err = epoll_wait(epollfd, events, MAX_EVENTS, -1); in test_sockmap_skb_verdict_shutdown()
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Duserfaultfd_util.c34 int epollfd; in uffd_handler_thread_fn() local
36 epollfd = epoll_create(1); in uffd_handler_thread_fn()
37 TEST_ASSERT(epollfd >= 0, "Failed to create epollfd."); in uffd_handler_thread_fn()
41 TEST_ASSERT(!epoll_ctl(epollfd, EPOLL_CTL_ADD, uffd, &evt), in uffd_handler_thread_fn()
46 TEST_ASSERT(!epoll_ctl(epollfd, EPOLL_CTL_ADD, reader_args->pipe, &evt), in uffd_handler_thread_fn()
54 r = epoll_wait(epollfd, &evt, 1, -1); in uffd_handler_thread_fn()
/linux-6.12.1/tools/testing/vsock/
Dutil.c66 int epollfd, nfds; in vsock_wait_remote_close() local
68 epollfd = epoll_create1(0); in vsock_wait_remote_close()
69 if (epollfd == -1) { in vsock_wait_remote_close()
76 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in vsock_wait_remote_close()
81 nfds = epoll_wait(epollfd, &ev, 1, TIMEOUT * 1000); in vsock_wait_remote_close()
96 close(epollfd); in vsock_wait_remote_close()
/linux-6.12.1/tools/testing/selftests/net/
Dtls.c1878 int epollfd; in TEST_F() local
1883 epollfd = epoll_create1(0); in TEST_F()
1884 ASSERT_GE(epollfd, 0); in TEST_F()
1889 ASSERT_GE(epoll_ctl(epollfd, EPOLL_CTL_ADD, self->cfd2, &ev), 0); in TEST_F()
1891 EXPECT_EQ(epoll_wait(epollfd, events, 10, 0), 0); in TEST_F()
1901 EXPECT_EQ(epoll_wait(epollfd, events, 10, 0), 0); in TEST_F()
1904 EXPECT_EQ(epoll_wait(epollfd, events, 10, 0), 1); in TEST_F()
1908 close(epollfd); in TEST_F()