Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c187 struct pollfd pfds[1]; in handle_ep0() local
188 pfds[0].fd = ep0; in handle_ep0()
189 pfds[0].events = POLLIN; in handle_ep0()
191 ret = poll(pfds, 1, 0); in handle_ep0()
193 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
/linux-6.6.21/tools/lib/api/
Dio.h58 struct pollfd pfds[] = { in io__get_char() local
65 n = poll(pfds, 1, io->timeout_ms); in io__get_char()
68 if (n > 0 && !(pfds[0].revents & POLLIN)) { in io__get_char()
/linux-6.6.21/tools/testing/selftests/net/af_unix/
Dtest_unix_oob.c109 struct pollfd pfds[1]; in wait_for_data() local
111 pfds[0].fd = pfd; in wait_for_data()
112 pfds[0].events = event; in wait_for_data()
113 poll(pfds, 1, -1); in wait_for_data()
/linux-6.6.21/tools/testing/selftests/hid/
Dhid_bpf.c239 struct pollfd pfds[1]; in uhid_read_events_thread() local
243 pfds[0].fd = fd; in uhid_read_events_thread()
244 pfds[0].events = POLLIN; in uhid_read_events_thread()
249 ret = poll(pfds, 1, 100); in uhid_read_events_thread()
254 if (pfds[0].revents & POLLIN) { in uhid_read_events_thread()