/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | reuseport_bpf_cpu.c | 151 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 …]
|
D | reuseport_bpf_numa.c | 161 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() 215 receive_on_node(rcv_fd, len, epfd, node, proto); in test() 221 receive_on_node(rcv_fd, len, epfd, node, proto); in test() 224 close(epfd); in test()
|
D | reuseport_dualstack.c | 102 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()
|
D | reuseport_addr_any.c | 168 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()
|
D | tcp_fastopen_backup_key.c | 249 int fd, epfd; in run_one_test() local 253 epfd = epoll_create(1); in run_one_test() 254 if (epfd < 0) in run_one_test() 259 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in run_one_test() 270 i = epoll_wait(epfd, &ev, 1, -1); in run_one_test() 278 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev)) in run_one_test() 285 if (epoll_ctl(epfd, EPOLL_CTL_DEL, ev.data.fd, NULL)) in run_one_test()
|
D | txtimestamp.c | 285 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()
|
D | reuseport_bpf.c | 219 int epfd, conn, i, sport, expected; in test_recv_order() local 222 epfd = epoll_create(1); in test_recv_order() 223 if (epfd < 0) in test_recv_order() 228 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[i], &ev)) in test_recv_order() 242 i = epoll_wait(epfd, &ev, 1, -1); in test_recv_order()
|
/kernel/liteos_a/fs/vfs/epoll/ |
D | fs_epoll.c | 219 int epoll_close(int epfd) in epoll_close() argument 223 epHead = EpollGetDataBuff(epfd); in epoll_close() 230 return EpollFreeSysFd(epfd); in epoll_close() 233 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev) in epoll_ctl() argument 239 epHead = EpollGetDataBuff(epfd); in epoll_ctl() 297 int epoll_wait(int epfd, FAR struct epoll_event *evs, int maxevents, int timeout) in epoll_wait() argument 306 epHead = EpollGetDataBuff(epfd); in epoll_wait()
|
/kernel/liteos_a/fs/vfs/include/ |
D | epoll.h | 76 int epoll_close(int epfd); 77 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev); 78 int epoll_wait(int epfd, FAR struct epoll_event *evs, int maxevents, int timeout);
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
D | sys_oabi-compat.c | 252 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, in sys_oabi_epoll_ctl() argument 265 return do_epoll_ctl(epfd, op, fd, &kernel, false); in sys_oabi_epoll_ctl() 268 asmlinkage long sys_oabi_epoll_wait(int epfd, in sys_oabi_epoll_wait() argument 288 ret = sys_epoll_wait(epfd, kbuf, maxevents, timeout); in sys_oabi_epoll_wait() 303 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, in sys_oabi_epoll_ctl() argument 309 asmlinkage long sys_oabi_epoll_wait(int epfd, in sys_oabi_epoll_wait() argument
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | select_reuseport.c | 45 static int epfd; variable 417 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); in do_test() 580 nev = epoll_wait(epfd, &ev, 1, 5); in test_detach_bpf() 665 epfd = epoll_create(1); in prepare_sk_fds() 666 RET_IF(epfd == -1, "epoll_create(1)", in prepare_sk_fds() 667 "epfd:%d errno:%d\n", epfd, errno); in prepare_sk_fds() 672 err = epoll_ctl(epfd, EPOLL_CTL_ADD, sk_fds[i], &ev); in prepare_sk_fds() 716 close(epfd); in cleanup_per_test()
|
/kernel/linux/linux-5.10/fs/ |
D | eventpoll.c | 2145 int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds, in do_epoll_ctl() argument 2156 f = fdget(epfd); in do_epoll_ctl() 2309 SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd, in SYSCALL_DEFINE4() argument 2318 return do_epoll_ctl(epfd, op, fd, &epds, false); in SYSCALL_DEFINE4() 2325 static int do_epoll_wait(int epfd, struct epoll_event __user *events, in do_epoll_wait() argument 2341 f = fdget(epfd); in do_epoll_wait() 2367 SYSCALL_DEFINE4(epoll_wait, int, epfd, struct epoll_event __user *, events, in SYSCALL_DEFINE4() argument 2370 return do_epoll_wait(epfd, events, maxevents, timeout); in SYSCALL_DEFINE4() 2377 SYSCALL_DEFINE6(epoll_pwait, int, epfd, struct epoll_event __user *, events, in SYSCALL_DEFINE6() argument 2391 error = do_epoll_wait(epfd, events, maxevents, timeout); in SYSCALL_DEFINE6() [all …]
|
/kernel/liteos_a/syscall/ |
D | fs_syscall.c | 2771 int SysEpollCtl(int epfd, int op, int fd, struct epoll_event *ev) in SysEpollCtl() argument 2779 epfd = GetAssociatedSystemFd(epfd); in SysEpollCtl() 2780 if ((fd < 0) || (epfd < 0)) { in SysEpollCtl() 2785 ret = epoll_ctl(epfd, op, fd, ev); in SysEpollCtl() 2796 int SysEpollWait(int epfd, struct epoll_event *evs, int maxevents, int timeout) in SysEpollWait() argument 2803 epfd = GetAssociatedSystemFd(epfd); in SysEpollWait() 2804 if (epfd < 0) { in SysEpollWait() 2809 ret = epoll_wait(epfd, evs, maxevents, timeout); in SysEpollWait() 2819 int SysEpollPwait(int epfd, struct epoll_event *evs, int maxevents, int timeout, const sigset_t *ma… in SysEpollPwait() argument 2837 epfd = GetAssociatedSystemFd(epfd); in SysEpollPwait() [all …]
|
D | los_syscall.h | 295 extern int SysEpollCtl(int epfd, int op, int fd, struct epoll_event *ev); 296 extern int SysEpollWait(int epfd, struct epoll_event *evs, int maxevents, int timeout); 297 extern int SysEpollPwait(int epfd, struct epoll_event *evs, int maxevents, int timeout, const sigse…
|
/kernel/linux/linux-5.10/include/linux/ |
D | eventpoll.h | 64 int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds,
|
D | syscalls.h | 383 asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, 385 asmlinkage long sys_epoll_pwait(int epfd, struct epoll_event __user *events, 1136 asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,
|
D | compat.h | 503 asmlinkage long compat_sys_epoll_pwait(int epfd,
|
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 3148 int epfd; member 3179 ret = epoll_pwait(ctx->epfd, &e, 1, 2000, &sigmask); in epoll60_wait_thread() 3223 ctx.epfd = epoll_create1(0); in TEST() 3224 ASSERT_GE(ctx.epfd, 0); in TEST() 3233 ASSERT_EQ(epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd[i], &e), 0); in TEST() 3282 close(ctx.epfd); in TEST() 3286 int epfd; member 3306 n = epoll_wait(ctx->epfd, events, 1, 11); in epoll61_epoll_with_timeout() 3324 epoll_wait(ctx->epfd, events, 1, -1); in epoll61_blocking_epoll() 3334 ctx.epfd = epoll_create1(0); in TEST() [all …]
|
/kernel/linux/linux-5.10/io_uring/ |
D | io_uring.c | 617 int epfd; member 4429 req->epoll.epfd = READ_ONCE(sqe->fd); in io_epoll_ctl_prep() 4454 ret = do_epoll_ctl(ie->epfd, ie->op, ie->fd, &ie->event, force_nonblock); in io_epoll_ctl()
|