Lines Matching refs:pollfd
591 struct pollfd pollfd[2]; in uffd_poll_thread() local
597 pollfd[0].fd = uffd; in uffd_poll_thread()
598 pollfd[0].events = POLLIN; in uffd_poll_thread()
599 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread()
600 pollfd[1].events = POLLIN; in uffd_poll_thread()
603 ret = poll(pollfd, 2, -1); in uffd_poll_thread()
612 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread()
613 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) { in uffd_poll_thread()
619 if (!(pollfd[0].revents & POLLIN)) { in uffd_poll_thread()
621 pollfd[0].revents); in uffd_poll_thread()
637 pollfd[0].fd = uffd; in uffd_poll_thread()