Home
last modified time | relevance | path

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

/linux-4.4.14/samples/uhid/
Duhid-example.c390 struct pollfd pfds[2]; in main() local
428 pfds[0].fd = STDIN_FILENO; in main()
429 pfds[0].events = POLLIN; in main()
430 pfds[1].fd = fd; in main()
431 pfds[1].events = POLLIN; in main()
435 ret = poll(pfds, 2, -1); in main()
440 if (pfds[0].revents & POLLHUP) { in main()
444 if (pfds[1].revents & POLLHUP) { in main()
449 if (pfds[0].revents & POLLIN) { in main()
454 if (pfds[1].revents & POLLIN) { in main()
/linux-4.4.14/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()
/linux-4.4.14/Documentation/networking/
Dnetlink_mmap.txt248 struct pollfd pfds[1];
250 pfds[0].fd = fd;
251 pfds[0].events = POLLIN | POLLERR;
252 pfds[0].revents = 0;
254 if (poll(pfds, 1, -1) < 0 && errno != -EINTR)
258 if (pfds[0].revents & POLLERR)
262 if (!(pfds[0].revents & POLLIN))