Searched refs:epoll_fd (Results 1 – 5 of 5) sorted by relevance
/external/ltp/testcases/kernel/syscalls/epoll/ |
D | epoll-ltp.c | 174 #define PROTECT_FUNC(fn, errval, epoll_fd) ( \ argument 182 return fn(epoll_fd); \ 205 int epoll_fd = -1; in test_epoll_create() local 215 epoll_fd = epoll_create(fd_set_size); in test_epoll_create() 216 if (epoll_fd >= 0) { in test_epoll_create() 220 close(epoll_fd); in test_epoll_create() 238 epoll_fd = epoll_create(fd_set_size); in test_epoll_create() 239 if (epoll_fd == -1) { in test_epoll_create() 254 close(epoll_fd); in test_epoll_create() 264 epoll_fd = epoll_create(fd_set_size); in test_epoll_create() [all …]
|
/external/wayland/src/ |
D | event-loop.c | 46 int epoll_fd; member 119 if (epoll_ctl(loop->epoll_fd, EPOLL_CTL_ADD, source->fd, &ep) < 0) { in add_source() 161 return epoll_ctl(loop->epoll_fd, EPOLL_CTL_MOD, source->fd, &ep); in wl_event_source_fd_update() 324 epoll_ctl(loop->epoll_fd, EPOLL_CTL_DEL, source->fd, NULL); in wl_event_source_remove() 355 loop->epoll_fd = wl_os_epoll_create_cloexec(); in wl_event_loop_create() 356 if (loop->epoll_fd < 0) { in wl_event_loop_create() 375 close(loop->epoll_fd); in wl_event_loop_destroy() 416 count = epoll_wait(loop->epoll_fd, ep, ARRAY_LENGTH(ep), timeout); in wl_event_loop_dispatch() 440 return loop->epoll_fd; in wl_event_loop_get_fd()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | ev_epollsig_linux.cc | 203 int epoll_fd; member 359 err = epoll_ctl(pi->epoll_fd, EPOLL_CTL_ADD, fds[i]->fd, &ev); in polling_island_add_fds_locked() 366 pi->epoll_fd, fds[i]->fd, errno, strerror(errno)); in polling_island_add_fds_locked() 398 err = epoll_ctl(pi->epoll_fd, EPOLL_CTL_ADD, in polling_island_add_wakeup_fd_locked() 404 pi->epoll_fd, GRPC_WAKEUP_FD_GET_READ_FD(wakeup_fd), errno, in polling_island_add_wakeup_fd_locked() 421 err = epoll_ctl(pi->epoll_fd, EPOLL_CTL_DEL, pi->fds[i]->fd, nullptr); in polling_island_remove_all_fds_locked() 426 pi->epoll_fd, i, pi->fds[i]->fd, errno, strerror(errno)); in polling_island_remove_all_fds_locked() 449 err = epoll_ctl(pi->epoll_fd, EPOLL_CTL_DEL, fd->fd, nullptr); in polling_island_remove_fd_locked() 454 pi->epoll_fd, fd->fd, errno, strerror(errno)); in polling_island_remove_fd_locked() 481 pi->epoll_fd = -1; in polling_island_create() [all …]
|
/external/grpc-grpc/test/core/network_benchmarks/ |
D | low_level_ping_pong.cc | 59 int epoll_fd; member 153 err = epoll_wait(args->epoll_fd, &ev, 1, spin ? 0 : -1); in epoll_read_bytes() 235 int epoll_fd; in epoll_setup() local 238 epoll_fd = epoll_create(1); in epoll_setup() 239 if (epoll_fd < 0) { in epoll_setup() 244 args->epoll_fd = epoll_fd; in epoll_setup() 248 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, args->fds.read_fd, &ev) < 0) { in epoll_setup()
|
/external/grpc-grpc/doc/ |
D | epoll-polling-engine.md | 34 …3]. Instead, they call `poll()` on the set containing `[event_fd`[^4]`, epoll_fd]`. **(see Figure … 63 * `epoll_fd`: The file descriptor of the underlying epoll set 88 …ling_island`'s `epoll_fd` (by signalling the `event_fd` on that island) and make them now wait on … 95 … also meant that every thread has to use a `poll()` (on `event_fd` and `epoll_fd`) instead of doin… 105 …where every thread does a blocking `poll()` on its `wakeup_fd` and the `epoll_fd`). The function`… 117 …epoll_fd]`. If the `poll()` returns due to an event of interest in the epoll set, they then call …
|