Lines Matching refs:pollfd
496 struct pollfd pollfd[2];
505 pollfd[0].fd = uffd;
506 pollfd[0].events = POLLIN;
507 pollfd[1].fd = pipefd[cpu*2];
508 pollfd[1].events = POLLIN;
511 ret = poll(pollfd, 2, -1);
517 if (pollfd[1].revents) {
518 if (!(pollfd[1].revents & POLLIN))
519 err("pollfd[1].revents %d", pollfd[1].revents);
520 if (read(pollfd[1].fd, &tmp_chr, 1) != 1)
524 if (!(pollfd[0].revents & POLLIN))
525 err("pollfd[0].revents %d", pollfd[0].revents);
538 pollfd[0].fd = uffd;