Searched refs:epoll_fd (Results 1 - 6 of 6) sorted by relevance
/linux-master/tools/testing/selftests/connector/ |
H A D | proc_filter.c | 85 int err = 0, epoll_fd; local 106 epoll_fd = epoll_create1(EPOLL_CLOEXEC); 107 if (epoll_fd < 0) { 120 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, nl_sock, &evn) < 0) { 125 *efd = epoll_fd; 213 int handle_events(int epoll_fd, struct proc_event *pev) argument 219 event_count = epoll_wait(epoll_fd, ev, MAX_EVENTS, -1); 243 int epoll_fd, err; local 266 err = register_proc_netlink(&epoll_fd, (void*)&input); 269 err = register_proc_netlink(&epoll_fd, (voi [all...] |
/linux-master/tools/lib/bpf/ |
H A D | ringbuf.c | 39 int epoll_fd; member in struct:ring_buffer 51 int epoll_fd; member in struct:user_ring_buffer 157 if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, e) < 0) { 181 if (rb->epoll_fd >= 0) 182 close(rb->epoll_fd); 205 rb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); 206 if (rb->epoll_fd < 0) { 309 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); 330 return rb->epoll_fd; 404 if (rb->epoll_fd > [all...] |
H A D | libbpf.c | 12867 int epoll_fd; /* perf event FD */ member in struct:perf_buffer 12905 if (pb->epoll_fd >= 0) 12906 close(pb->epoll_fd); 13075 pb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); 13076 if (pb->epoll_fd < 0) { 13147 if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd, 13231 return pb->epoll_fd; 13238 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms);
|
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_ringbufs.c | 214 int epoll_fd; member in struct:ringbuf_custom_ctx 237 ctx->epoll_fd = epoll_create1(EPOLL_CLOEXEC); 238 if (ctx->epoll_fd < 0) { 267 err = epoll_ctl(ctx->epoll_fd, EPOLL_CTL_ADD, r->map_fd, &ctx->event); 333 cnt = epoll_wait(ctx->epoll_fd, &ctx->event, 1, -1); 471 int epoll_fd; /* perf event FD */ member in struct:perf_buffer 491 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1);
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_test.c | 398 int epoll_fd = epoll_create1(EPOLL_CLOEXEC); local 401 if (epoll_fd == -1) 409 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, pidfd, &event)) { 415 c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000); 421 close(epoll_fd);
|
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | fp-stress.c | 40 static int epoll_fd; variable 136 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev); 418 ret = epoll_wait(epoll_fd, evs, tests, 0); 512 epoll_fd = ret; 580 ret = epoll_wait(epoll_fd, evs, tests, 1000);
|
Completed in 307 milliseconds