| /tools/leds/ |
| D | led_hw_brightness_mon.c | 30 struct pollfd pollfd; in main() local 55 pollfd.fd = fd; in main() 56 pollfd.events = POLLPRI; in main() 59 ret = poll(&pollfd, 1, -1); in main() 73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
|
| /tools/testing/selftests/filesystems/incfs/ |
| D | utils.c | 281 struct pollfd pollfd = { in wait_for_pending_reads() local 286 poll_res = poll(&pollfd, 1, timeout_ms); in wait_for_pending_reads() 291 if (!(pollfd.revents | POLLIN)) in wait_for_pending_reads() 309 struct pollfd pollfd = { in wait_for_pending_reads2() local 314 poll_res = poll(&pollfd, 1, timeout_ms); in wait_for_pending_reads2() 319 if (!(pollfd.revents | POLLIN)) in wait_for_pending_reads2()
|
| /tools/testing/selftests/powerpc/tm/ |
| D | tm-signal-pagefault.c | 88 struct pollfd pollfd; in fault_handler_thread() local 94 pollfd.fd = uffd; in fault_handler_thread() 95 pollfd.events = POLLIN; in fault_handler_thread() 96 if (poll(&pollfd, 1, -1) == -1) { in fault_handler_thread()
|
| /tools/testing/selftests/mm/ |
| D | uffd-common.c | 508 struct pollfd pollfd[2]; in uffd_poll_thread() local 517 pollfd[0].fd = uffd; in uffd_poll_thread() 518 pollfd[0].events = POLLIN; in uffd_poll_thread() 519 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 520 pollfd[1].events = POLLIN; in uffd_poll_thread() 525 ret = poll(pollfd, 2, -1); in uffd_poll_thread() 531 if (pollfd[1].revents) { in uffd_poll_thread() 532 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread() 533 err("pollfd[1].revents %d", pollfd[1].revents); in uffd_poll_thread() 534 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread() [all …]
|
| /tools/lib/api/fd/ |
| D | array.h | 7 struct pollfd; 23 struct pollfd *entries;
|
| D | array.c | 26 size_t size = sizeof(struct pollfd) * nr_alloc; in fdarray__grow() 27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow() 38 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow() 93 struct pollfd *entry; in fdarray__dup_entry_from()
|
| /tools/perf/util/ |
| D | intel-tpebs.c | 267 struct pollfd pollfd = { .events = POLLIN, }; in tpebs_start() local 303 pollfd.fd = ack_fd[0]; in tpebs_start() 310 if (!poll(&pollfd, 1, 3000)) { in tpebs_start() 316 if (!(pollfd.revents & POLLIN)) { in tpebs_start()
|
| /tools/lib/perf/ |
| D | evlist.c | 32 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init() 173 fdarray__exit(&evlist->pollfd); in perf_evlist__exit() 353 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 354 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd() 363 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags); in perf_evlist__add_pollfd() 366 evlist->pollfd.priv[pos].ptr = ptr; in perf_evlist__add_pollfd() 384 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd() 390 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll() 673 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ops()
|
| /tools/perf/ |
| D | builtin-daemon.c | 447 struct pollfd pollfd = { in daemon_session__wait() local 456 int err = poll(&pollfd, 1, 1000); in daemon_session__wait() 486 struct pollfd pollfd = { in daemon__wait() local 495 int err = poll(&pollfd, 1, 1000); in daemon__wait() 514 struct pollfd pollfd = { .events = POLLIN, }; in daemon_session__control() local 556 pollfd.fd = ack; in daemon_session__control() 558 if (!poll(&pollfd, 1, 2000)) { in daemon_session__control() 563 if (!(pollfd.revents & POLLIN)) { in daemon_session__control()
|
| D | builtin-ftrace.c | 624 struct pollfd pollfd = { in __cmd_ftrace() local 665 pollfd.fd = trace_fd; in __cmd_ftrace() 688 if (poll(&pollfd, 1, -1) < 0) in __cmd_ftrace() 691 if (pollfd.revents & POLLIN) { in __cmd_ftrace() 927 struct pollfd pollfd = { in __cmd_latency() local 937 pollfd.fd = trace_fd; in __cmd_latency() 946 if (poll(&pollfd, 1, -1) < 0) in __cmd_latency() 949 if (pollfd.revents & POLLIN) { in __cmd_latency()
|
| D | builtin-record.c | 108 struct fdarray pollfd; member 1125 fdarray__init(&thread_data->pollfd, 64); in record__thread_data_init_pollfd() 1132 for (f = 0; f < evlist->core.pollfd.nr; f++) { in record__thread_data_init_pollfd() 1133 void *ptr = evlist->core.pollfd.priv[f].ptr; in record__thread_data_init_pollfd() 1136 pos = fdarray__dup_entry_from(&thread_data->pollfd, f, in record__thread_data_init_pollfd() 1137 &evlist->core.pollfd); in record__thread_data_init_pollfd() 1141 thread_data, pos, evlist->core.pollfd.entries[f].fd); in record__thread_data_init_pollfd() 1161 fdarray__exit(&thread_data[t].pollfd); in record__free_thread_data() 1185 struct pollfd *e_entries = evlist->core.pollfd.entries; in record__update_evlist_pollfd_from_thread() 1186 struct pollfd *t_entries = thread_data->pollfd.entries; in record__update_evlist_pollfd_from_thread() [all …]
|
| /tools/testing/selftests/cgroup/ |
| D | wait_inotify.c | 33 struct pollfd fds = { .events = POLLIN, }; in main()
|
| /tools/perf/bench/ |
| D | sched-messaging.c | 82 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local 89 if (poll(&pollfd, 1, -1) != 1) in ready()
|
| /tools/testing/selftests/pidfd/ |
| D | pidfd_poll_test.c | 28 struct pollfd fds; in main()
|
| /tools/virtio/virtio-trace/ |
| D | trace-agent-ctl.c | 50 struct pollfd poll_fd; in wait_order()
|
| /tools/gpio/ |
| D | gpio-watch.c | 27 struct pollfd pfd; in main()
|
| /tools/testing/selftests/thermal/intel/power_floor/ |
| D | power_floor_test.c | 40 struct pollfd ufd; in main()
|
| /tools/testing/selftests/net/ |
| D | txtimestamp.c | 299 struct pollfd pollfd; in __poll() local 302 memset(&pollfd, 0, sizeof(pollfd)); in __poll() 303 pollfd.fd = fd; in __poll() 304 ret = poll(&pollfd, 1, cfg_poll_timeout); in __poll()
|
| /tools/testing/selftests/seccomp/ |
| D | seccomp_bpf.c | 3366 struct pollfd pollfd; in TEST() local 3421 pollfd.fd = listener; in TEST() 3422 pollfd.events = POLLIN | POLLOUT; in TEST() 3424 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3425 EXPECT_EQ(pollfd.revents, POLLIN); in TEST() 3440 pollfd.fd = listener; in TEST() 3441 pollfd.events = POLLIN | POLLOUT; in TEST() 3443 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3444 EXPECT_EQ(pollfd.revents, POLLOUT); in TEST() 3825 struct pollfd pollfd; in TEST() local [all …]
|
| /tools/testing/selftests/bpf/ |
| D | test_lirc_mode2_user.c | 114 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; in main()
|
| /tools/testing/selftests/thermal/intel/workload_hint/ |
| D | workload_hint_test.c | 51 struct pollfd ufd; in main()
|
| /tools/lib/perf/include/internal/ |
| D | evlist.h | 32 struct fdarray pollfd; member
|
| /tools/testing/selftests/filesystems/epoll/ |
| D | epoll_wakeup_test.c | 63 struct pollfd pfd; in waiter_entry1ap() 90 struct pollfd pfd; in waiter_entry1op() 117 struct pollfd pfd; in waiter_entry2ap() 305 struct pollfd pfd; in TEST() 344 struct pollfd pfd; in TEST() 384 struct pollfd pfd; in TEST() 430 struct pollfd pfd; in TEST() 1006 struct pollfd pfd; in TEST() 1054 struct pollfd pfd; in TEST() 1102 struct pollfd pfd; in TEST() [all …]
|
| /tools/testing/vsock/ |
| D | vsock_perf.c | 204 struct pollfd fds = { 0 }; in run_receiver() 319 struct pollfd fds = { 0 }; in run_sender()
|
| /tools/testing/selftests/alsa/ |
| D | mixer-test.c | 38 struct pollfd pollfd; member 187 &card_data->pollfd, 1); in find_controls() 218 err = poll(&(ctl->card->pollfd), 1, timeout); in wait_for_event() 229 &(ctl->card->pollfd), in wait_for_event()
|