/linux-master/tools/thermal/lib/ |
H A D | mainloop.c | 11 static int epfd = -1; variable 28 if (epfd < 0) 33 nfds = epoll_wait(epfd, events, MAX_EVENTS, timeout); 71 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev) < 0) { 81 if (epoll_ctl(epfd, EPOLL_CTL_DEL, fd, NULL) < 0) 89 epfd = epoll_create(2); 90 if (epfd < 0) 103 close(epfd);
|
/linux-master/io_uring/ |
H A D | epoll.c | 18 int epfd; member in struct:io_epoll 31 epoll->epfd = READ_ONCE(sqe->fd); 52 ret = do_epoll_ctl(ie->epfd, ie->op, ie->fd, &ie->event, force_nonblock);
|
/linux-master/tools/testing/selftests/net/ |
H A D | reuseport_bpf_cpu.c | 151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) argument 157 i = epoll_wait(epfd, &ev, 1, -1); 187 int epfd, cpu; local 192 epfd = epoll_create(1); 193 if (epfd < 0) 198 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev)) 205 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); 211 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); 217 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); 223 receive_on_cpu(rcv_fd, len, epfd, cp [all...] |
H A D | reuseport_bpf_numa.c | 161 void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto) argument 167 i = epoll_wait(epfd, &ev, 1, -1); 197 int epfd, node; local 202 epfd = epoll_create(1); 203 if (epfd < 0) 208 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev)) 217 receive_on_node(rcv_fd, len, epfd, node, proto); 225 receive_on_node(rcv_fd, len, epfd, node, proto); 228 close(epfd);
|
H A D | reuseport_dualstack.c | 102 static int receive_once(int epfd, int proto) argument 108 i = epoll_wait(epfd, &ev, 1, -1); 131 int epfd, i, test_fd; local 135 epfd = epoll_create(1); 136 if (epfd < 0) 142 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) 148 test_fd = receive_once(epfd, proto); 156 close(epfd);
|
H A D | reuseport_addr_any.c | 168 static int receive_once(int epfd, int proto) argument 174 i = epoll_wait(epfd, &ev, 1, 3); 197 int epfd, i, send_fd, recv_fd; local 199 epfd = epoll_create(1); 200 if (epfd < 0) 206 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) 212 recv_fd = receive_once(epfd, proto); 217 close(epfd);
|
H A D | tcp_fastopen_backup_key.c | 247 int fd, epfd; local 251 epfd = epoll_create(1); 252 if (epfd < 0) 257 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) 268 i = epoll_wait(epfd, &ev, 1, -1); 276 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev)) 283 if (epoll_ctl(epfd, EPOLL_CTL_DEL, ev.data.fd, NULL))
|
H A D | reuseport_bpf.c | 217 int epfd, conn, i, sport, expected; local 220 epfd = epoll_create(1); 221 if (epfd < 0) 226 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[i], &ev)) 240 i = epoll_wait(epfd, &ev, 1, -1);
|
H A D | txtimestamp.c | 286 static void __epoll(int epfd) argument 292 ret = epoll_wait(epfd, &events, 1, cfg_poll_timeout); 490 int fd, i, val = 1, total_len, epfd = 0; local 528 epfd = epoll_create(1); 529 if (epfd <= 0) 531 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev)) 647 __epoll(epfd);
|
/linux-master/include/linux/ |
H A D | eventpoll.h | 56 int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds,
|
H A D | compat.h | 584 asmlinkage long compat_sys_epoll_pwait(int epfd, 589 asmlinkage long compat_sys_epoll_pwait2(int epfd,
|
H A D | syscalls.h | 364 asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, 366 asmlinkage long sys_epoll_pwait(int epfd, struct epoll_event __user *events, 370 asmlinkage long sys_epoll_pwait2(int epfd, struct epoll_event __user *events, 1068 asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,
|
/linux-master/arch/arm/include/asm/ |
H A D | syscalls.h | 28 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd,
|
/linux-master/fs/ |
H A D | eventpoll.c | 2221 int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds, argument 2232 f = fdget(epfd); 2377 SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd, 2386 return do_epoll_ctl(epfd, op, fd, &epds, false); 2393 static int do_epoll_wait(int epfd, struct epoll_event __user *events, argument 2409 f = fdget(epfd); 2435 SYSCALL_DEFINE4(epoll_wait, int, epfd, struct epoll_event __user *, events, 2440 return do_epoll_wait(epfd, events, maxevents, 2448 static int do_epoll_pwait(int epfd, struct epoll_event __user *events, argument 2462 error = do_epoll_wait(epfd, event 2499 do_compat_epoll_pwait(int epfd, struct epoll_event __user *events, int maxevents, struct timespec64 *timeout, const compat_sigset_t __user *sigmask, compat_size_t sigsetsize) argument [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | select_reuseport.c | 44 static int epfd; variable 408 nev = epoll_wait(epfd, &ev, 1, expected >= PASS ? 5 : 0); 571 nev = epoll_wait(epfd, &ev, 1, 5); 656 epfd = epoll_create(1); 657 RET_IF(epfd == -1, "epoll_create(1)", 658 "epfd:%d errno:%d\n", epfd, errno); 663 err = epoll_ctl(epfd, EPOLL_CTL_ADD, sk_fds[i], &ev); 707 close(epfd);
|
/linux-master/arch/arm/kernel/ |
H A D | sys_oabi-compat.c | 285 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, argument 298 return do_epoll_ctl(epfd, op, fd, &kernel, false); 301 asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, argument
|
/linux-master/tools/testing/selftests/filesystems/epoll/ |
H A D | epoll_wakeup_test.c | 3163 int epfd; member in struct:epoll60_ctx 3194 ret = epoll_pwait(ctx->epfd, &e, 1, 2000, &sigmask); 3238 ctx.epfd = epoll_create1(0); 3239 ASSERT_GE(ctx.epfd, 0); 3248 ASSERT_EQ(epoll_ctl(ctx.epfd, EPOLL_CTL_ADD, ctx.evfd[i], &e), 0); 3297 close(ctx.epfd); 3301 int epfd; member in struct:epoll61_ctx 3321 n = epoll_wait(ctx->epfd, events, 1, 11); 3339 epoll_wait(ctx->epfd, events, 1, -1); 3349 ctx.epfd [all...] |