Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/tools/testing/selftests/bpf/
Dtrace_helpers.c176 struct pollfd *pfds; in perf_event_poller_multi() local
181 pfds = calloc(num_fds, sizeof(*pfds)); in perf_event_poller_multi()
182 if (!pfds) in perf_event_poller_multi()
186 pfds[i].fd = fds[i]; in perf_event_poller_multi()
187 pfds[i].events = POLLIN; in perf_event_poller_multi()
191 poll(pfds, num_fds, 1000); in perf_event_poller_multi()
193 if (!pfds[i].revents) in perf_event_poller_multi()
206 free(pfds); in perf_event_poller_multi()
/Linux-v4.19/samples/uhid/
Duhid-example.c391 struct pollfd pfds[2]; in main() local
429 pfds[0].fd = STDIN_FILENO; in main()
430 pfds[0].events = POLLIN; in main()
431 pfds[1].fd = fd; in main()
432 pfds[1].events = POLLIN; in main()
436 ret = poll(pfds, 2, -1); in main()
441 if (pfds[0].revents & POLLHUP) { in main()
445 if (pfds[1].revents & POLLHUP) { in main()
450 if (pfds[0].revents & POLLIN) { in main()
455 if (pfds[1].revents & POLLIN) { in main()
/Linux-v4.19/tools/bpf/bpftool/
Dmap_perf_ring.c182 struct pollfd *pfds; in do_event_pipe() local
249 pfds = calloc(nfds, sizeof(pfds[0])); in do_event_pipe()
250 if (!pfds) in do_event_pipe()
266 pfds[i].fd = rings[i].fd; in do_event_pipe()
267 pfds[i].events = POLLIN; in do_event_pipe()
278 poll(pfds, nfds, 200); in do_event_pipe()
291 free(pfds); in do_event_pipe()
303 free(pfds); in do_event_pipe()
/Linux-v4.19/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c169 struct pollfd pfds[1]; in handle_ep0() local
170 pfds[0].fd = ep0; in handle_ep0()
171 pfds[0].events = POLLIN; in handle_ep0()
173 ret = poll(pfds, 1, 0); in handle_ep0()
175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()