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