Lines Matching refs:pollfd
443 struct pollfd pollfd[2]; in uffd_poll_thread() local
451 pollfd[0].fd = uffd; in uffd_poll_thread()
452 pollfd[0].events = POLLIN; in uffd_poll_thread()
453 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread()
454 pollfd[1].events = POLLIN; in uffd_poll_thread()
457 ret = poll(pollfd, 2, -1); in uffd_poll_thread()
462 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread()
463 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread()
468 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
470 pollfd[0].revents), exit(1); in uffd_poll_thread()
494 pollfd[0].fd = uffd; in uffd_poll_thread()