Searched refs:epollfd (Results 1 - 7 of 7) sorted by relevance
/linux-master/arch/um/os-Linux/ |
H A D | irq.c | 19 static int epollfd = -1; variable 62 epollfd = epoll_create(MAX_EPOLL_EVENTS); 63 return epollfd; 73 n = epoll_wait(epollfd, 99 result = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &event); 117 result = epoll_ctl(epollfd, EPOLL_CTL_MOD, fd, &event); 133 return epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event); 144 os_close_file(epollfd);
|
/linux-master/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 38 int epollfd; local 55 epollfd = epoll_create1(0); 56 if (epollfd < 0) { 64 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) { 75 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fddup, &ev)) { 142 .efd = epollfd,
|
/linux-master/tools/perf/bench/ |
H A D | epoll-wait.c | 102 static int epollfd; variable 120 int epollfd; /* for --multiq */ member in struct:worker 191 int efd = multiq ? w->epollfd : epollfd; 234 close(w->epollfd); 244 int efd = multiq ? w->epollfd : epollfd; 321 w->epollfd = epoll_create(1); 322 if (w->epollfd < 0) 335 int efd = multiq ? w->epollfd [all...] |
H A D | epoll-ctl.c | 54 static int epollfd; variable 115 if (epollfd < 0) 128 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, *epollfdp, &ev) < 0) 142 error = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev); 146 error = epoll_ctl(epollfd, EPOLL_CTL_MOD, fd, &ev); 149 error = epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, NULL); 218 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0) 338 epollfd = epoll_create(1); 339 if (epollfd < 0) 423 close(epollfd); [all...] |
/linux-master/tools/testing/vsock/ |
H A D | util.c | 66 int epollfd, nfds; local 68 epollfd = epoll_create1(0); 69 if (epollfd == -1) { 76 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) { 81 nfds = epoll_wait(epollfd, &ev, 1, TIMEOUT * 1000); 96 close(epollfd);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_basic.c | 364 int epollfd; local 395 epollfd = epoll_create1(0); 396 if (!ASSERT_GT(epollfd, -1, "epoll_create(0)")) 398 err = epoll_ctl(epollfd, EPOLL_CTL_ADD, c1, &ev); 401 err = epoll_wait(epollfd, events, MAX_EVENTS, -1);
|
/linux-master/tools/testing/selftests/net/ |
H A D | tls.c | 1878 int epollfd; local 1883 epollfd = epoll_create1(0); 1884 ASSERT_GE(epollfd, 0); 1889 ASSERT_GE(epoll_ctl(epollfd, EPOLL_CTL_ADD, self->cfd2, &ev), 0); 1891 EXPECT_EQ(epoll_wait(epollfd, events, 10, 0), 0); 1901 EXPECT_EQ(epoll_wait(epollfd, events, 10, 0), 0); 1904 EXPECT_EQ(epoll_wait(epollfd, events, 10, 0), 1); 1908 close(epollfd);
|
Completed in 106 milliseconds