Searched refs:pfds (Results 1 – 7 of 7) sorted by relevance
| /linux/samples/uhid/ |
| H A D | uhid-example.c | 391 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/tools/testing/selftests/hid/ |
| H A D | hidraw.c | 140 struct pollfd pfds[1]; in TEST_F() 145 pfds[0].fd = self->hidraw_fd; in TEST_F() 146 pfds[0].events = POLLIN; in TEST_F() 154 ready = poll(pfds, 1, 5000); in TEST_F() 157 if (pfds[0].revents & POLLIN) { in TEST_F() 172 ASSERT_TRUE(pfds[0].revents & POLLHUP); 137 struct pollfd pfds[1]; TEST_F() local
|
| H A D | hid_common.h | 278 struct pollfd pfds[1]; in uhid_read_events_thread() local 282 pfds[0].fd = fd; in uhid_read_events_thread() 283 pfds[0].events = POLLIN; in uhid_read_events_thread() 288 ret = poll(pfds, 1, 100); in uhid_read_events_thread() 293 if (pfds[0].revents & POLLIN) { in uhid_read_events_thread()
|
| /linux/tools/usb/ffs-aio-example/simple/device_app/ |
| H A D | aio_simple.c | 187 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/tools/testing/selftests/net/af_unix/ |
| H A D | test_unix_oob.c | |
| /linux/tools/perf/tests/ |
| H A D | builtin-test.c | 924 struct pollfd pfds[1] = { 958 poll(pfds, ARRAY_SIZE(pfds), /*timeout=*/100); 959 if (pfds[0].revents) { 1095 * to -1. This removes it from the pfds array for subsequent 1108 struct pollfd *pfds; 1123 global_pfds = calloc(num_tests, sizeof(*pfds)); 1125 pfds = global_pfds; 1127 if (!pfds || !pfd_indices) { 1128 free(pfds); 434 struct pollfd pfds[1] = { finish_test() local [all...] |
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.c | 1107 struct pollfd pfds[2]; in ublk_io_handler_fn() 1113 pfds[0].fd = info->sock_fd; in ublk_io_handler_fn() 1114 pfds[0].events = POLLIN; in ublk_io_handler_fn() 1115 pfds[1].fd = info->stop_efd; in ublk_io_handler_fn() 1116 pfds[1].events = POLLIN; in ublk_io_handler_fn() 1119 int ret = poll(pfds, 2, -1); in ublk_io_handler_fn() 1125 if (pfds[1].revents & POLLIN) in ublk_set_parameters() 1129 if (pfds[0].revents & POLLIN) in ublk_set_parameters() 1378 struct pollfd pfds[2]; ublk_shmem_listener_fn() local
|