Lines Matching refs:evfd
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()
606 pollfd.fd = evfd; in overflow_poll_test()
621 static void overflow_read_test(int evfd) in overflow_read_test() argument
628 ret = trigger_eventfd_overflow(evfd, &fd, &ctx); in overflow_read_test()
634 ret = read(evfd, &count, sizeof(count)); in overflow_read_test()
647 static void overflow_select_test(int evfd) in overflow_select_test() argument
652 static void overflow_poll_test(int evfd) in overflow_poll_test() argument
657 static void overflow_read_test(int evfd) in overflow_read_test() argument