Home
last modified time | relevance | path

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

123

/third_party/rust/crates/nix/test/sys/
H A Dtest_epoll.rs2 use nix::sys::epoll::{epoll_create1, epoll_ctl};
8 let result = epoll_ctl(efd, EpollOp::EpollCtlDel, 1, None); in test_epoll_errno()
12 let result = epoll_ctl(efd, EpollOp::EpollCtlAdd, 1, None); in test_epoll_errno()
22 epoll_ctl(efd, EpollOp::EpollCtlAdd, 1, &mut event).unwrap(); in test_epoll_ctl()
23 epoll_ctl(efd, EpollOp::EpollCtlDel, 1, None).unwrap(); in test_epoll_ctl()
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/
H A Dlinux_epoll_ctl_test.cpp24 EXPECT_TRUE(epoll_ctl(epollFd, EPOLL_CTL_ADD, fds[0], &ev) != -1); in HWTEST_F()
40 EXPECT_TRUE(epoll_ctl(epollFd, EPOLL_CTL_MOD, fds[0], &ev) == -1); in HWTEST_F()
56 EXPECT_TRUE(epoll_ctl(epollFd, EPOLL_CTL_DEL, fds[0], &ev) == -1); in HWTEST_F()
/third_party/ltp/testcases/kernel/syscalls/epoll_ctl/
H A Depoll_ctl05.c10 * Verify that epoll_ctl() fails with ELOOP if fd refers to an epoll instance
42 if (epoll_ctl(new_epfd, EPOLL_CTL_ADD, epfd, &events)) in setup()
43 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in setup()
47 if (epoll_ctl(origin_epfd, EPOLL_CTL_DEL, fd[0], &events)) in setup()
48 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_DEL, ...)"); in setup()
63 TST_EXP_FAIL(epoll_ctl(origin_epfd, EPOLL_CTL_ADD, epfd, &events), in verify_epoll_ctl()
64 ELOOP, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in verify_epoll_ctl()
H A Depoll_ctl04.c11 * otherwise epoll_ctl fails with EINVAL.
38 if (epoll_ctl(new_epfd, EPOLL_CTL_ADD, epfd, &events)) in setup()
39 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in setup()
61 TST_EXP_FAIL(epoll_ctl(new_epfd, EPOLL_CTL_ADD, epfd, &events), EINVAL, in verify_epoll_ctl()
62 "epoll_ctl(..., EPOLL_CTL_ADD, ...) with number of nesting is 5"); in verify_epoll_ctl()
H A Depoll_ctl03.c10 * Check that epoll_ctl returns zero with different combinations of events on
42 TST_EXP_PASS(epoll_ctl(epfd, EPOLL_CTL_MOD, fds[0], &events), in run_all()
43 "epoll_ctl(..., EPOLL_CTL_MOD, ...) with events.events=%08x", in run_all()
57 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &events)) in setup()
58 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in setup()
H A Depoll_ctl02.c10 * Verify that epoll_ctl() fails with:
69 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd[0], &events[0])) in setup()
70 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in setup()
87 TST_EXP_FAIL(epoll_ctl(*tc[n].epfd, tc[n].opt, *tc[n].fd, tc[n].event), in verify_epoll_ctl()
88 tc[n].exp_err, "epoll_ctl(...) if %s", tc[n].desc); in verify_epoll_ctl()
/third_party/node/deps/uv/src/unix/
H A Depoll.c77 epoll_ctl(loop->backend_fd, EPOLL_CTL_DEL, fd, &dummy); in uv__platform_invalidate_fd()
91 if (epoll_ctl(loop->backend_fd, EPOLL_CTL_ADD, fd, &e)) in uv__io_check_fd()
96 if (epoll_ctl(loop->backend_fd, EPOLL_CTL_DEL, fd, &e)) in uv__io_check_fd()
164 if (epoll_ctl(loop->backend_fd, op, w->fd, &e)) { in uv__io_poll()
171 if (epoll_ctl(loop->backend_fd, EPOLL_CTL_MOD, w->fd, &e)) in uv__io_poll()
336 epoll_ctl(loop->backend_fd, EPOLL_CTL_DEL, fd, pe); in uv__io_poll()
/third_party/rust/crates/rustix/src/backend/libc/io/
H A Depoll.rs142 /// `epoll_ctl(self, EPOLL_CTL_ADD, data, event)`—Adds an element to an
147 #[doc(alias = "epoll_ctl")]
153 // Safety: We're calling `epoll_ctl` via FFI and we know how it in add()
159 ret(c::epoll_ctl( in add()
172 /// `epoll_ctl(self, EPOLL_CTL_MOD, target, event)`—Modifies an element in
176 #[doc(alias = "epoll_ctl")]
184 // Safety: We're calling `epoll_ctl` via FFI and we know how it in mod_()
187 ret(c::epoll_ctl( in mod_()
199 /// `epoll_ctl(self, EPOLL_CTL_DEL, target, NULL)`—Removes an element in
203 #[doc(alias = "epoll_ctl")]
[all...]
/third_party/rust/crates/nix/src/sys/
H A Depoll.rs88 pub fn epoll_ctl<'a, T>( in epoll_ctl() functions
103 libc::epoll_ctl(epfd, op as c_int, fd, &mut event.event) in epoll_ctl()
105 libc::epoll_ctl(epfd, op as c_int, fd, ptr::null_mut()) in epoll_ctl()
/third_party/alsa-utils/alsactl/
H A Dmonitor.c265 err = epoll_ctl(epfd, op, pfds[i].fd, epev); in operate_dispatcher()
283 if (epoll_ctl(epfd, EPOLL_CTL_ADD, sigfd, &ev) < 0) in prepare_dispatcher()
288 if (epoll_ctl(epfd, EPOLL_CTL_ADD, infd, &ev) < 0) in prepare_dispatcher()
367 epoll_ctl(epfd, EPOLL_CTL_DEL, infd, NULL); in clear_dispatcher()
369 epoll_ctl(epfd, EPOLL_CTL_DEL, sigfd, NULL); in clear_dispatcher()
/third_party/node/deps/cares/src/lib/
H A Dares_event_epoll.c110 if (epoll_ctl(ep->epoll_fd, EPOLL_CTL_ADD, event->fd, &epev) != 0) { in ares_evsys_epoll_event_add()
124 epoll_ctl(ep->epoll_fd, EPOLL_CTL_DEL, event->fd, &epev); in ares_evsys_epoll_event_del()
143 epoll_ctl(ep->epoll_fd, EPOLL_CTL_MOD, event->fd, &epev); in ares_evsys_epoll_event_mod()
/third_party/curl/docs/examples/
H A Dephiperfifo.c257 if(epoll_ctl(g->epfd, EPOLL_CTL_DEL, f->sockfd, NULL)) in remsock()
276 if(epoll_ctl(g->epfd, EPOLL_CTL_DEL, f->sockfd, NULL)) in setsock()
287 if(epoll_ctl(g->epfd, EPOLL_CTL_ADD, s, &ev)) in setsock()
444 epoll_ctl(g->epfd, EPOLL_CTL_ADD, sockfd, &epev); in init_fifo()
452 epoll_ctl(g->epfd, EPOLL_CTL_DEL, g->fifofd, NULL); in clean_fifo()
497 epoll_ctl(g.epfd, EPOLL_CTL_ADD, g.tfd, &ev); in main()
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
H A Depoll.rs140 /// `epoll_ctl(self, EPOLL_CTL_ADD, data, event)`—Adds an element to an
145 #[doc(alias = "epoll_ctl")]
151 // Safety: We're calling `epoll_ctl` via FFI and we know how it in add()
169 /// `epoll_ctl(self, EPOLL_CTL_MOD, target, event)`—Modifies an element in
173 #[doc(alias = "epoll_ctl")]
181 // Safety: We're calling `epoll_ctl` via FFI and we know how it in mod_()
195 /// `epoll_ctl(self, EPOLL_CTL_DEL, target, NULL)`—Removes an element in
199 #[doc(alias = "epoll_ctl")]
201 // Safety: We're calling `epoll_ctl` via FFI and we know how it in del()
/third_party/alsa-utils/axfer/
H A Dwaiter-epoll.c44 if (epoll_ctl(state->epfd, EPOLL_CTL_ADD, ev.data.fd, &ev) < 0) in epoll_prepare()
88 epoll_ctl(state->epfd, EPOLL_CTL_DEL, fd, NULL); in epoll_release()
/third_party/eudev/src/udev/
H A Dudevd.c279 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_signal, &ep_signal) < 0 || in worker_spawn()
280 epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_monitor, &ep_monitor) < 0) { in worker_spawn()
1350 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_ctrl, &ep_ctrl) < 0 || in main()
1351 epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_inotify, &ep_inotify) < 0 || in main()
1352 epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_signal, &ep_signal) < 0 || in main()
1353 epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_netlink, &ep_netlink) < 0 || in main()
1354 epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_worker, &ep_worker) < 0) { in main()
1370 epoll_ctl(fd_ep, EPOLL_CTL_DEL, fd_ctrl, NULL); in main()
1374 epoll_ctl(fd_ep, EPOLL_CTL_DEL, fd_netlink, NULL); in main()
1379 epoll_ctl(fd_e in main()
[all...]
H A Dudevadm-monitor.c202 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_udev, &ep_udev) < 0) { in adm_monitor()
236 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_kernel, &ep_kernel) < 0) { in adm_monitor()
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/
H A Depoll_wait01.c70 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0]) || in setup()
71 epoll_ctl(epfd, EPOLL_CTL_ADD, fds[1], &epevs[1])) { in setup()
72 tst_brk(TBROK | TERRNO, "epoll_ctl() failed"); in setup()
/third_party/ltp/testcases/kernel/syscalls/epoll_pwait/
H A Depoll_pwait04.c40 if (epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e)) in setup()
41 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in setup()
H A Depoll_pwait05.c50 if (epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e)) in setup()
51 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in setup()
H A Depoll_pwait03.c52 if (epoll_ctl(efd, EPOLL_CTL_ADD, sfd[0], &e)) in setup()
53 tst_brk(TBROK | TERRNO, "epoll_ctl(..., EPOLL_CTL_ADD, ...)"); in setup()
/third_party/ltp/lib/
H A Dtst_epoll.c56 ret = epoll_ctl(epfd, op, fd, ev); in safe_epoll_ctl()
61 "epoll_ctl(%d, %s, %d, ...", epfd, op_str, fd); in safe_epoll_ctl()
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Depoll.h60 int epoll_ctl(int, int, int, struct epoll_event *);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Depoll.h60 int epoll_ctl(int, int, int, struct epoll_event *);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
H A Depoll.h60 int epoll_ctl(int, int, int, struct epoll_event *);
/third_party/musl/src/linux/
H A Depoll.c27 int epoll_ctl(int fd, int op, int fd2, struct epoll_event *ev) in epoll_ctl() function

Completed in 10 milliseconds

123