Searched refs:pfd (Results 1 – 3 of 3) sorted by relevance
135 struct pollfd pfd; in hpet_poll() local178 pfd.fd = fd; in hpet_poll()179 pfd.events = POLLIN; in hpet_poll()182 pfd.revents = 0; in hpet_poll()184 if (poll(&pfd, 1, -1) < 0) in hpet_poll()197 pfd.revents); in hpet_poll()
107 struct pollfd pfd; in main() local188 pfd.fd = s; in main()191 pfd.events = POLLIN; in main()192 pfd.revents = 0; in main()193 switch (poll(&pfd, 1, -1)) { in main()
1538 struct pollfd pfd[2] = {}; in sample_run() local1554 pfd[0].fd = sample_sig_fd; in sample_run()1555 pfd[0].events = POLLIN; in sample_run()1557 pfd[1].fd = timerfd; in sample_run()1558 pfd[1].events = POLLIN; in sample_run()1573 ret = poll(pfd, 2, -1); in sample_run()1581 if (pfd[0].revents & POLLIN) in sample_run()1583 else if (pfd[1].revents & POLLIN) in sample_run()