Lines Matching refs:pollfd
714 struct pollfd pollfd[2]; in uffd_poll_thread() local
720 pollfd[0].fd = uffd; in uffd_poll_thread()
721 pollfd[0].events = POLLIN; in uffd_poll_thread()
722 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread()
723 pollfd[1].events = POLLIN; in uffd_poll_thread()
726 ret = poll(pollfd, 2, -1); in uffd_poll_thread()
729 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread()
730 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread()
734 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
735 err("pollfd[0].revents %d", pollfd[0].revents); in uffd_poll_thread()
748 pollfd[0].fd = uffd; in uffd_poll_thread()