Home
last modified time | relevance | path

Searched refs:epoll_fd (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/tools/testing/selftests/connector/
Dproc_filter.c85 int err = 0, epoll_fd; in register_proc_netlink() local
106 epoll_fd = epoll_create1(EPOLL_CLOEXEC); in register_proc_netlink()
107 if (epoll_fd < 0) { in register_proc_netlink()
120 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, nl_sock, &evn) < 0) { in register_proc_netlink()
125 *efd = epoll_fd; in register_proc_netlink()
213 int handle_events(int epoll_fd, struct proc_event *pev) in handle_events() argument
219 event_count = epoll_wait(epoll_fd, ev, MAX_EVENTS, -1); in handle_events()
243 int epoll_fd, err; in main() local
266 err = register_proc_netlink(&epoll_fd, (void*)&input); in main()
269 err = register_proc_netlink(&epoll_fd, (void*)&op); in main()
[all …]
/linux-6.6.21/tools/lib/bpf/
Dringbuf.c39 int epoll_fd; member
51 int epoll_fd; member
153 if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, e) < 0) { in ring_buffer__add()
174 if (rb->epoll_fd >= 0) in ring_buffer__free()
175 close(rb->epoll_fd); in ring_buffer__free()
198 rb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in ring_buffer__new()
199 if (rb->epoll_fd < 0) { in ring_buffer__new()
302 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll()
323 return rb->epoll_fd; in ring_buffer__epoll_fd()
345 if (rb->epoll_fd >= 0) in user_ring_buffer__free()
[all …]
Dlibbpf.c12328 int epoll_fd; /* perf event FD */ member
12366 if (pb->epoll_fd >= 0) in perf_buffer__free()
12367 close(pb->epoll_fd); in perf_buffer__free()
12536 pb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in __perf_buffer__new()
12537 if (pb->epoll_fd < 0) { in __perf_buffer__new()
12608 if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd, in __perf_buffer__new()
12692 return pb->epoll_fd; in perf_buffer__epoll_fd()
12699 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms); in perf_buffer__poll()
/linux-6.6.21/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c214 int epoll_fd; member
237 ctx->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in ringbuf_custom_setup()
238 if (ctx->epoll_fd < 0) { in ringbuf_custom_setup()
267 err = epoll_ctl(ctx->epoll_fd, EPOLL_CTL_ADD, r->map_fd, &ctx->event); in ringbuf_custom_setup()
333 cnt = epoll_wait(ctx->epoll_fd, &ctx->event, 1, -1); in ringbuf_custom_consumer()
471 int epoll_fd; /* perf event FD */ member
491 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); in perfbuf_custom_consumer()
/linux-6.6.21/tools/testing/selftests/pidfd/
Dpidfd_test.c398 int epoll_fd = epoll_create1(EPOLL_CLOEXEC); in poll_pidfd() local
401 if (epoll_fd == -1) in poll_pidfd()
409 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, pidfd, &event)) { in poll_pidfd()
415 c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000); in poll_pidfd()
421 close(epoll_fd); in poll_pidfd()
/linux-6.6.21/tools/testing/selftests/arm64/fp/
Dfp-stress.c40 static int epoll_fd; variable
136 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev); in child_start()
418 ret = epoll_wait(epoll_fd, evs, tests, 0); in drain_output()
512 epoll_fd = ret; in main()
580 ret = epoll_wait(epoll_fd, evs, tests, 1000); in main()