Searched refs:epoll_ctl (Results 1 - 25 of 25) sorted by relevance

/linux-master/arch/um/os-Linux/
H A Dirq.c99 result = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &event);
117 result = epoll_ctl(epollfd, EPOLL_CTL_MOD, fd, &event);
133 return epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, &event);
/linux-master/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c175 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
206 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
238 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0);
241 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0);
276 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0);
279 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[2], events), 0);
314 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
353 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e), 0);
394 ASSERT_EQ(epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], events), 0);
397 ASSERT_EQ(epoll_ctl(ef
[all...]
/linux-master/tools/thermal/lib/
H A Dmainloop.c71 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev) < 0) {
81 if (epoll_ctl(epfd, EPOLL_CTL_DEL, fd, NULL) < 0)
/linux-master/tools/perf/bench/
H A Depoll-ctl.c5 * Benchmark the various operations allowed for epoll_ctl(2).
123 if (epoll_ctl(epollfdp[i - 1], EPOLL_CTL_ADD,
125 err(EXIT_FAILURE, "epoll_ctl");
128 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, *epollfdp, &ev) < 0)
129 err(EXIT_FAILURE, "epoll_ctl");
142 error = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev);
146 error = epoll_ctl(epollfd, EPOLL_CTL_MOD, fd, &ev);
149 error = epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, NULL);
218 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0)
364 printf("Run summary [PID %d]: %d threads doing epoll_ctl op
[all...]
H A Depoll-wait.c221 ret = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev);
227 ret = epoll_ctl(efd, EPOLL_CTL_MOD, fd, &ev);
263 if (epoll_ctl(epollfdp[i - 1], EPOLL_CTL_ADD,
265 err(EXIT_FAILURE, "epoll_ctl");
268 if (epoll_ctl(efd, EPOLL_CTL_ADD, *epollfdp, &ev) < 0)
269 err(EXIT_FAILURE, "epoll_ctl");
345 ret = epoll_ctl(efd, EPOLL_CTL_ADD,
348 err(EXIT_FAILURE, "epoll_ctl");
/linux-master/tools/testing/selftests/kcmp/
H A Dkcmp_test.c64 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, pipefd[0], &ev)) {
65 perror("epoll_ctl failed");
75 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fddup, &ev)) {
76 perror("epoll_ctl failed");
/linux-master/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.c257 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev))
276 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev))
283 if (epoll_ctl(epfd, EPOLL_CTL_DEL, ev.data.fd, NULL))
H A Dreuseport_bpf_cpu.c198 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev))
H A Dreuseport_dualstack.c142 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev))
H A Dreuseport_addr_any.c206 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev))
H A Dreuseport_bpf_numa.c208 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev))
H A Dreuseport_bpf.c226 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[i], &ev))
H A Dtxtimestamp.c531 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev))
532 error(1, errno, "epoll_ctl");
H A Dtls.c1889 ASSERT_GE(epoll_ctl(epollfd, EPOLL_CTL_ADD, self->cfd2, &ev), 0);
/linux-master/tools/testing/selftests/connector/
H A Dproc_filter.c120 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, nl_sock, &evn) < 0) {
122 perror("epoll_ctl failed");
/linux-master/tools/lib/bpf/
H A Dringbuf.c157 if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, e) < 0) {
470 if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, rb_epoll) < 0) {
H A Dlibbpf.c13147 if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd,
13150 pr_warn("failed to epoll_ctl cpu #%d perf FD %d: %s\n",
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_test.c409 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, pidfd, &event)) {
/linux-master/kernel/
H A Dsys_ni.c56 COND_SYSCALL(epoll_ctl); variable
/linux-master/tools/testing/selftests/arm64/fp/
H A Dfp-stress.c136 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev);
/linux-master/tools/testing/selftests/bpf/benchs/
H A Dbench_ringbufs.c267 err = epoll_ctl(ctx->epoll_fd, EPOLL_CTL_ADD, r->map_fd, &ctx->event);
/linux-master/tools/testing/vsock/
H A Dutil.c76 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev) == -1) {
77 perror("epoll_ctl");
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dselect_reuseport.c663 err = epoll_ctl(epfd, EPOLL_CTL_ADD, sk_fds[i], &ev);
664 RET_IF(err, "epoll_ctl(EPOLL_CTL_ADD)", "sk_fds[%d]\n", i);
H A Dsockmap_basic.c398 err = epoll_ctl(epollfd, EPOLL_CTL_ADD, c1, &ev);
399 if (!ASSERT_OK(err, "epoll_ctl(EPOLL_CTL_ADD)"))
/linux-master/fs/
H A Deventpoll.c60 * during epoll_ctl(EPOLL_CTL_DEL) and during eventpoll_release_file().
71 * epoll_ctl(e1, EPOLL_CTL_ADD, e2), e1->mtx will always be acquired
569 * epoll_ctl(efd1, EPOLL_CTL_ADD, dfd, ...);
570 * epoll_ctl(efd2, EPOLL_CTL_ADD, efd1, ...);
702 * eventpoll_release_file() and epoll_ctl().
1858 * into ep->rdllist besides us. The epoll_ctl()
2377 SYSCALL_DEFINE4(epoll_ctl, int, epfd, int, op, int, fd,

Completed in 299 milliseconds