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

/linux-master/samples/uhid/
H A Duhid-example.c391 struct pollfd pfds[2]; local
429 pfds[0].fd = STDIN_FILENO;
430 pfds[0].events = POLLIN;
431 pfds[1].fd = fd;
432 pfds[1].events = POLLIN;
436 ret = poll(pfds, 2, -1);
441 if (pfds[0].revents & POLLHUP) {
445 if (pfds[1].revents & POLLHUP) {
450 if (pfds[0].revents & POLLIN) {
455 if (pfds[
[all...]
/linux-master/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c187 struct pollfd pfds[1]; local
188 pfds[0].fd = ep0;
189 pfds[0].events = POLLIN;
191 ret = poll(pfds, 1, 0);
193 if (ret && (pfds[0].revents & POLLIN)) {
/linux-master/tools/lib/api/
H A Dio.h58 struct pollfd pfds[] = { local
65 n = poll(pfds, 1, io->timeout_ms);
68 if (n > 0 && !(pfds[0].revents & POLLIN)) {
/linux-master/tools/testing/selftests/net/af_unix/
H A Dtest_unix_oob.c109 struct pollfd pfds[1]; local
111 pfds[0].fd = pfd;
112 pfds[0].events = event;
113 poll(pfds, 1, -1);
/linux-master/tools/perf/tests/
H A Dbuiltin-test.c307 struct pollfd pfds[2] = { local
319 poll(pfds, ARRAY_SIZE(pfds), /*timeout=*/1000);
320 if (!out_done && pfds[0].revents) {
334 if (!err_done && pfds[1].revents) {
/linux-master/tools/testing/selftests/hid/
H A Dhid_bpf.c239 struct pollfd pfds[1]; local
243 pfds[0].fd = fd;
244 pfds[0].events = POLLIN;
249 ret = poll(pfds, 1, 100);
254 if (pfds[0].revents & POLLIN) {

Completed in 127 milliseconds