Lines Matching refs:pollfd
508 struct pollfd pollfd[2]; in uffd_poll_thread() local
517 pollfd[0].fd = uffd; in uffd_poll_thread()
518 pollfd[0].events = POLLIN; in uffd_poll_thread()
519 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread()
520 pollfd[1].events = POLLIN; in uffd_poll_thread()
525 ret = poll(pollfd, 2, -1); in uffd_poll_thread()
531 if (pollfd[1].revents) { in uffd_poll_thread()
532 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread()
533 err("pollfd[1].revents %d", pollfd[1].revents); in uffd_poll_thread()
534 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread()
538 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
539 err("pollfd[0].revents %d", pollfd[0].revents); in uffd_poll_thread()
552 pollfd[0].fd = uffd; in uffd_poll_thread()