Home
last modified time | relevance | path

Searched refs:epfd (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/tools/thermal/lib/
H A Dmainloop.c11 static int epfd = -1; variable
31 if (epfd < 0) in mainloop()
36 nfds = epoll_wait(epfd, events, MAX_EVENTS, timeout); in mainloop()
82 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev) < 0) { in mainloop_add()
95 if (epoll_ctl(epfd, EPOLL_CTL_DEL, fd, NULL) < 0) in mainloop_del()
105 epfd = epoll_create(2); in mainloop_init()
106 if (epfd < 0) in mainloop_init()
119 close(epfd); in mainloop_fini()
/openbmc/linux/tools/testing/selftests/net/
H A Dreuseport_bpf_cpu.c151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) in receive_on_cpu() argument
157 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_cpu()
187 int epfd, cpu; in test() local
192 epfd = epoll_create(1); in test()
193 if (epfd < 0) in test()
198 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev)) in test()
205 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test()
211 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test()
217 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test()
223 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test()
[all …]
H A Dreuseport_dualstack.c102 static int receive_once(int epfd, int proto) in receive_once() argument
108 i = epoll_wait(epfd, &ev, 1, -1); in receive_once()
131 int epfd, i, test_fd; in test() local
135 epfd = epoll_create(1); in test()
136 if (epfd < 0) in test()
142 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in test()
148 test_fd = receive_once(epfd, proto); in test()
156 close(epfd); in test()
H A Dreuseport_bpf_numa.c161 void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto) in receive_on_node() argument
167 i = epoll_wait(epfd, &ev, 1, -1); in receive_on_node()
197 int epfd, node; in test() local
202 epfd = epoll_create(1); in test()
203 if (epfd < 0) in test()
208 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev)) in test()
217 receive_on_node(rcv_fd, len, epfd, node, proto); in test()
225 receive_on_node(rcv_fd, len, epfd, node, proto); in test()
228 close(epfd); in test()
H A Dreuseport_addr_any.c168 static int receive_once(int epfd, int proto) in receive_once() argument
174 i = epoll_wait(epfd, &ev, 1, 3); in receive_once()
197 int epfd, i, send_fd, recv_fd; in test() local
199 epfd = epoll_create(1); in test()
200 if (epfd < 0) in test()
206 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in test()
212 recv_fd = receive_once(epfd, proto); in test()
217 close(epfd); in test()
H A Dtcp_fastopen_backup_key.c247 int fd, epfd; in run_one_test() local
251 epfd = epoll_create(1); in run_one_test()
252 if (epfd < 0) in run_one_test()
257 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in run_one_test()
268 i = epoll_wait(epfd, &ev, 1, -1); in run_one_test()
276 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev)) in run_one_test()
283 if (epoll_ctl(epfd, EPOLL_CTL_DEL, ev.data.fd, NULL)) in run_one_test()
H A Dtxtimestamp.c285 static void __epoll(int epfd) in __epoll() argument
291 ret = epoll_wait(epfd, &events, 1, cfg_poll_timeout); in __epoll()
489 int fd, i, val = 1, total_len, epfd = 0; in do_test() local
527 epfd = epoll_create(1); in do_test()
528 if (epfd <= 0) in do_test()
530 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev)) in do_test()
646 __epoll(epfd); in do_test()
H A Dreuseport_bpf.c217 int epfd, conn, i, sport, expected; in test_recv_order() local
220 epfd = epoll_create(1); in test_recv_order()
221 if (epfd < 0) in test_recv_order()
226 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[i], &ev)) in test_recv_order()
240 i = epoll_wait(epfd, &ev, 1, -1); in test_recv_order()
/openbmc/linux/io_uring/
H A Depoll.c18 int epfd; member
31 epoll->epfd = READ_ONCE(sqe->fd); in io_epoll_ctl_prep()
52 ret = do_epoll_ctl(ie->epfd, ie->op, ie->fd, &ie->event, force_nonblock); in io_epoll_ctl()
/openbmc/linux/fs/
H A Deventpoll.c2152 int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds, in do_epoll_ctl() argument
2163 f = fdget(epfd); in do_epoll_ctl()
2308 SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd, in SYSCALL_DEFINE4() argument
2317 return do_epoll_ctl(epfd, op, fd, &epds, false); in SYSCALL_DEFINE4()
2324 static int do_epoll_wait(int epfd, struct epoll_event __user *events, in do_epoll_wait() argument
2340 f = fdget(epfd); in do_epoll_wait()
2366 SYSCALL_DEFINE4(epoll_wait, int, epfd, struct epoll_event __user *, events, in SYSCALL_DEFINE4() argument
2371 return do_epoll_wait(epfd, events, maxevents, in SYSCALL_DEFINE4()
2379 static int do_epoll_pwait(int epfd, struct epoll_event __user *events, in do_epoll_pwait() argument
2393 error = do_epoll_wait(epfd, events, maxevents, to); in do_epoll_pwait()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dselect_reuseport.c44 static int epfd; variable
408 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); in do_test()
571 nev = epoll_wait(epfd, &ev, 1, 5); in test_detach_bpf()
656 epfd = epoll_create(1); in prepare_sk_fds()
657 RET_IF(epfd == -1, "epoll_create(1)", in prepare_sk_fds()
658 "epfd:%d errno:%d\n", epfd, errno); in prepare_sk_fds()
663 err = epoll_ctl(epfd, EPOLL_CTL_ADD, sk_fds[i], &ev); in prepare_sk_fds()
707 close(epfd); in cleanup_per_test()
/openbmc/openbmc-tools/pwmtachtool/src/
H A DEINTR_wrappers.h56 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);
57 int sigwrap_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const si…
H A DEINTR_wrappers.c109 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in sigwrap_epoll_wait() argument
125 int Result = epoll_wait(epfd, events, maxevents, timeout); in sigwrap_epoll_wait()
144 int sigwrap_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sig… in sigwrap_epoll_pwait() argument
160 int Result = epoll_pwait(epfd, events, maxevents, timeout, sigmask); in sigwrap_epoll_pwait()
/openbmc/openbmc-tools/adcapp/src/
H A DEINTR_wrappers.h56 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);
57 int sigwrap_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const si…
H A DEINTR_wrappers.c136 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in sigwrap_epoll_wait() argument
152 int Result = epoll_wait(epfd, events, maxevents, timeout); in sigwrap_epoll_wait()
171 int sigwrap_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sig… in sigwrap_epoll_pwait() argument
187 int Result = epoll_pwait(epfd, events, maxevents, timeout, sigmask); in sigwrap_epoll_pwait()
/openbmc/linux/include/linux/
H A Deventpoll.h56 int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds,
H A Dsyscalls.h362 asmlinkage long sys_epoll_ctl(int epfd, int op, int fd,
364 asmlinkage long sys_epoll_pwait(int epfd, struct epoll_event __user *events,
368 asmlinkage long sys_epoll_pwait2(int epfd, struct epoll_event __user *events,
1051 asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,
H A Dcompat.h585 asmlinkage long compat_sys_epoll_pwait(int epfd,
590 asmlinkage long compat_sys_epoll_pwait2(int epfd,
/openbmc/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c285 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, in sys_oabi_epoll_ctl() argument
298 return do_epoll_ctl(epfd, op, fd, &kernel, false); in sys_oabi_epoll_ctl()
301 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, in sys_oabi_epoll_ctl() argument
/openbmc/linux/arch/arm/include/asm/
H A Dsyscalls.h28 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
/openbmc/linux/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c3163 int epfd; member
3194 ret = epoll_pwait(ctx->epfd, &e, 1, 2000, &sigmask); in epoll60_wait_thread()
3238 ctx.epfd = epoll_create1(0); in TEST()
3239 ASSERT_GE(ctx.epfd, 0); in TEST()
3248 ASSERT_EQ(epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd[i], &e), 0); in TEST()
3297 close(ctx.epfd); in TEST()
3301 int epfd; member
3321 n = epoll_wait(ctx->epfd, events, 1, 11); in epoll61_epoll_with_timeout()
3339 epoll_wait(ctx->epfd, events, 1, -1); in epoll61_blocking_epoll()
3349 ctx.epfd = epoll_create1(0); in TEST()
[all …]
/openbmc/qemu/linux-user/
H A Dsyscall.c705 safe_syscall6(int, epoll_pwait, int, epfd, struct epoll_event *, events, in safe_syscall3()
13349 int epfd = arg1; in _syscall2() local
13382 ret = get_errno(safe_epoll_pwait(epfd, ep, maxevents, timeout, in _syscall2()
13393 ret = get_errno(safe_epoll_pwait(epfd, ep, maxevents, timeout, in _syscall2()