Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 3 of 3) sorted by relevance

/samples/timers/
Dhpet_example.c135 struct pollfd pfd; in hpet_poll() local
178 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()
/samples/connector/
Ducon.c107 struct pollfd pfd; in main() local
188 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()
/samples/bpf/
Dxdp_sample_user.c1538 struct pollfd pfd[2] = {}; in sample_run() local
1554 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()