| /linux/tools/testing/selftests/filesystems/epoll/ |
| H A D | epoll_wakeup_test.c | 55 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1a() 70 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1ap() 82 if (epoll_wait(ctx->efd[0], &e, 1, -1) > 0) in waiter_entry1o() 97 if (epoll_wait(ctx->efd[0], &e, 1, 0) > 0) in waiter_entry1op() 109 if (epoll_wait(ctx->efd[0], events, 2, -1) > 0) in waiter_entry2a() 124 if (epoll_wait(ctx->efd[0], events, 2, 0) > 0) in waiter_entry2ap() 179 EXPECT_EQ(epoll_wait(efd, &e, 1, 0), 1); in TEST() 180 EXPECT_EQ(epoll_wait(efd, &e, 1, 0), 1); in TEST() 210 EXPECT_EQ(epoll_wait(efd, &e, 1, 0), 1); in TEST() 211 EXPECT_EQ(epoll_wait(efd, &e, 1, 0), 0); in TEST() [all …]
|
| /linux/tools/testing/selftests/net/packetdrill/ |
| H A D | tcp_zerocopy_epoll_edge.pkt | 30 +0 epoll_wait(5, {events=EPOLLOUT, fd=4}, 1, 0) = 1 41 +0 epoll_wait(5, {events=EPOLLERR|EPOLLOUT, fd=4}, 1, 0) = 1 42 +0 epoll_wait(5, {events=0, ptr=0}, 1, 0) = 0 49 +0 epoll_wait(5, {events=EPOLLERR|EPOLLOUT, fd=4}, 1, 0) = 1 50 +0 epoll_wait(5, {events=0, ptr=0}, 1, 0) = 0
|
| H A D | tcp_zerocopy_epoll_oneshot.pkt | 42 +0 epoll_wait(5, {events=EPOLLERR|EPOLLOUT, fd=4}, 1, 0) = 1 43 +0 epoll_wait(5, {events=0, ptr=0}, 1, 0) = 0 50 +0 epoll_wait(5, {events=0, ptr=0}, 1, 0) = 0 54 +0 epoll_wait(5, {events=EPOLLERR|EPOLLOUT, fd=4}, 1, 0) = 1 55 +0 epoll_wait(5, {events=0, ptr=0}, 1, 0) = 0
|
| H A D | tcp_zerocopy_epoll_exclusive.pkt | 32 +0 epoll_wait(5, {events=EPOLLOUT, fd=4}, 1, 0) = 1 43 +0 epoll_wait(5, {events=EPOLLERR|EPOLLOUT, fd=4}, 1, 0) = 1 44 +0 epoll_wait(5, {events=0, ptr=0}, 1, 0) = 0 51 +0 epoll_wait(5, {events=EPOLLERR|EPOLLOUT, fd=4}, 1, 0) = 1 52 +0 epoll_wait(5, {events=0, ptr=0}, 1, 0) = 0
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | napi.rst | 226 可以从 ``epoll_wait`` 调用直接触发数据包处理。为了使用此功能,用户应用程序必须确保添加到 239 范围的设置,将导致所有基于 epoll 的应用程序在调用 epoll_wait 时忙轮询。这可能不是理想 290 只要应用程序对 epoll_wait 的调用成功获取事件,内核就会推迟 IRQ 挂起定时器。如果 301 为覆盖用户应用程序调用 epoll_wait 处理数据所需的时间,需注意的是,应用程 302 序可通过在调用 epoll_wait 时设置 ``max_events`` 来控制获取的数据量。 312 如上所述,只要后续对 epoll_wait 的调用向用户空间返回事件,``irq-suspend-timeout`` 315 一旦 epoll_wait 的调用没有找到任何事件,IRQ 挂起会被自动禁用,并且 ``gro_flush_timeout``
|
| /linux/tools/thermal/lib/ |
| H A D | mainloop.c | 33 nfds = epoll_wait(epfd, events, MAX_EVENTS, timeout); in mainloop()
|
| /linux/arch/um/os-Linux/ |
| H A D | irq.c | 73 n = epoll_wait(epollfd, in os_waiting_for_events_epoll()
|
| H A D | sigio.c | 42 r = epoll_wait(epollfd, epoll_events, MAX_EPOLL_EVENTS, -1); in write_sigio_thread()
|
| /linux/tools/testing/selftests/arm64/gcs/ |
| H A D | gcs-stress.c | 334 ret = epoll_wait(epoll_fd, evs, tests, 0); in drain_output() 463 ret = epoll_wait(epoll_fd, evs, tests, 100); in main()
|
| /linux/Documentation/networking/ |
| H A D | napi.rst | 274 ``epoll_wait``. In order to use this feature, a user application must ensure 292 epoll-based applications to busy poll when they call epoll_wait. This may 356 While application calls to epoll_wait successfully retrieve events, the kernel will 373 call to epoll_wait, noting that applications can control how much data 374 they retrieve by setting ``max_events`` when calling epoll_wait. 386 As mentioned above, as long as subsequent calls to epoll_wait return events to 390 Once a call to epoll_wait results in no events being found, IRQ suspension is
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | fp-stress.c | 433 ret = epoll_wait(epoll_fd, evs, tests, 0); in drain_output() 591 ret = epoll_wait(epoll_fd, evs, tests, poll_interval); in main()
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_ringbufs.c | 386 cnt = epoll_wait(ctx->epoll_fd, &ctx->event, 1, -1); in ringbuf_custom_consumer() 544 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); in perfbuf_custom_consumer()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | userfaultfd_util.c | 54 r = epoll_wait(epollfd, &evt, 1, -1); in uffd_handler_thread_fn()
|
| /linux/tools/testing/selftests/net/ |
| H A D | reuseport_dualstack.c | 108 i = epoll_wait(epfd, &ev, 1, -1); in receive_once()
|
| H A D | reuseport_addr_any.c | 155 i = epoll_wait(epfd, &ev, 1, 3); in receive_once()
|
| H A D | reuseport_bpf_numa.c | 167 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_node()
|
| H A D | reuseport_bpf_cpu.c | 157 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_cpu()
|
| H A D | busy_poller.c | 322 nfds = epoll_wait(epfd, events, cfg_max_events, -1); in run_poller()
|
| /linux/tools/lib/bpf/ |
| H A D | ringbuf.c | 341 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll() 667 cnt = epoll_wait(rb->epoll_fd, &rb->event, 1, ms_remaining); in user_ring_buffer__reserve_blocking()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_struct_ops_module.c | 285 nfds = epoll_wait(epollfd, events, 2, 500); in test_detach_link()
|
| H A D | select_reuseport.c | 399 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); in do_test() 562 nev = epoll_wait(epfd, &ev, 1, 5); in test_detach_bpf()
|
| /linux/tools/perf/bench/ |
| H A D | sched-pipe.c | 178 ret = epoll_wait(td->epoll_fd, &td->epoll_ev, 1, -1); in read_pipe()
|
| /linux/tools/testing/selftests/coredump/ |
| H A D | coredump_test_helpers.c | 340 int n = epoll_wait(epfd, events, 1, -1); in process_coredump_worker()
|
| /linux/tools/testing/selftests/connector/ |
| H A D | proc_filter.c | 219 event_count = epoll_wait(epoll_fd, ev, MAX_EVENTS, -1); in handle_events()
|
| /linux/kernel/ |
| H A D | sys_ni.c | 325 COND_SYSCALL(epoll_wait);
|