Searched refs:pfds (Results 1 – 3 of 3) sorted by relevance
391 struct pollfd pfds[2]; in main() local429 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()
169 struct pollfd pfds[1]; in handle_ep0() local170 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()
109 struct pollfd pfds[1]; in wait_for_data() local111 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()