Lines Matching refs:pollfd
492 struct pollfd pollfd[2]; in uffd_poll_thread() local
499 pollfd[0].fd = uffd; in uffd_poll_thread()
500 pollfd[0].events = POLLIN; in uffd_poll_thread()
501 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread()
502 pollfd[1].events = POLLIN; in uffd_poll_thread()
505 ret = poll(pollfd, 2, -1); in uffd_poll_thread()
510 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread()
511 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread()
516 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
518 pollfd[0].revents), exit(1); in uffd_poll_thread()
532 pollfd[0].fd = uffd; in uffd_poll_thread()