Searched refs:evfd (Results 1 – 2 of 2) sorted by relevance
/external/grpc-grpc/src/core/lib/iomgr/ |
D | is_epollexclusive_available.cc | 51 int evfd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC); in grpc_is_epollexclusive_available() local 52 if (evfd < 0) { in grpc_is_epollexclusive_available() 70 if (epoll_ctl(fd, EPOLL_CTL_ADD, evfd, &ev) != 0) { in grpc_is_epollexclusive_available() 81 close(evfd); in grpc_is_epollexclusive_available() 93 close(evfd); in grpc_is_epollexclusive_available() 96 close(evfd); in grpc_is_epollexclusive_available()
|
/external/ltp/testcases/kernel/syscalls/eventfd/ |
D | eventfd01.c | 501 static int trigger_eventfd_overflow(int evfd, int *fd, io_context_t * ctx) in trigger_eventfd_overflow() argument 523 ret = set_counter(evfd, UINT64_MAX - 1); in trigger_eventfd_overflow() 530 io_set_eventfd(&iocb, evfd); in trigger_eventfd_overflow() 564 static void overflow_select_test(int evfd) in overflow_select_test() argument 572 ret = trigger_eventfd_overflow(evfd, &fd, &ctx); in overflow_select_test() 579 FD_SET(evfd, &readfds); in overflow_select_test() 580 ret = select(evfd + 1, &readfds, NULL, NULL, &timeout); in overflow_select_test() 585 if (FD_ISSET(evfd, &readfds)) in overflow_select_test() 593 static void overflow_poll_test(int evfd) in overflow_poll_test() argument 600 ret = trigger_eventfd_overflow(evfd, &fd, &ctx); in overflow_poll_test() [all …]
|