Searched refs:pfds (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/samples/uhid/
H A Duhid-example.c390 struct pollfd pfds[2]; main() local
428 pfds[0].fd = STDIN_FILENO; main()
429 pfds[0].events = POLLIN; main()
430 pfds[1].fd = fd; main()
431 pfds[1].events = POLLIN; main()
435 ret = poll(pfds, 2, -1); main()
440 if (pfds[0].revents & POLLHUP) { main()
444 if (pfds[1].revents & POLLHUP) { main()
449 if (pfds[0].revents & POLLIN) { main()
454 if (pfds[1].revents & POLLIN) { main()
/linux-4.1.27/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c169 struct pollfd pfds[1]; handle_ep0() local
170 pfds[0].fd = ep0; handle_ep0()
171 pfds[0].events = POLLIN; handle_ep0()
173 ret = poll(pfds, 1, 0); handle_ep0()
175 if (ret && (pfds[0].revents & POLLIN)) { handle_ep0()

Completed in 121 milliseconds