/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/kvm/ |
D | demand_paging_test.c | 146 struct pollfd pollfd[2]; in uffd_handler_thread_fn() local 151 pollfd[0].fd = uffd; in uffd_handler_thread_fn() 152 pollfd[0].events = POLLIN; in uffd_handler_thread_fn() 153 pollfd[1].fd = pipefd; in uffd_handler_thread_fn() 154 pollfd[1].events = POLLIN; in uffd_handler_thread_fn() 156 r = poll(pollfd, 2, -1); in uffd_handler_thread_fn() 170 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn() 175 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn() 176 r = read(pollfd[1].fd, &tmp_chr, 1); in uffd_handler_thread_fn() 182 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
|
/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/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()
|
/tools/lib/perf/ |
D | evlist.c | 31 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init() 132 fdarray__exit(&evlist->pollfd); in perf_evlist__exit() 309 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 310 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd() 319 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags); in perf_evlist__add_pollfd() 322 evlist->pollfd.priv[pos].ptr = ptr; in perf_evlist__add_pollfd() 340 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd() 346 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll() 595 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ops()
|
/tools/perf/bench/ |
D | sched-messaging.c | 69 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local 76 if (poll(&pollfd, 1, -1) != 1) in ready()
|
/tools/testing/selftests/vm/ |
D | userfaultfd.c | 714 struct pollfd pollfd[2]; in uffd_poll_thread() local 720 pollfd[0].fd = uffd; in uffd_poll_thread() 721 pollfd[0].events = POLLIN; in uffd_poll_thread() 722 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 723 pollfd[1].events = POLLIN; in uffd_poll_thread() 726 ret = poll(pollfd, 2, -1); in uffd_poll_thread() 729 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread() 730 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread() 734 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 735 err("pollfd[0].revents %d", pollfd[0].revents); in uffd_poll_thread() [all …]
|
/tools/perf/ |
D | builtin-daemon.c | 446 struct pollfd pollfd = { in daemon_session__wait() local 455 int err = poll(&pollfd, 1, 1000); in daemon_session__wait() 485 struct pollfd pollfd = { in daemon__wait() local 494 int err = poll(&pollfd, 1, 1000); in daemon__wait() 513 struct pollfd pollfd = { .events = POLLIN, }; in daemon_session__control() local 555 pollfd.fd = ack; in daemon_session__control() 557 if (!poll(&pollfd, 1, 2000)) { in daemon_session__control() 562 if (!(pollfd.revents & POLLIN)) { in daemon_session__control()
|
D | builtin-ftrace.c | 573 struct pollfd pollfd = { in __cmd_ftrace() local 634 pollfd.fd = trace_fd; in __cmd_ftrace() 657 if (poll(&pollfd, 1, -1) < 0) in __cmd_ftrace() 660 if (pollfd.revents & POLLIN) { in __cmd_ftrace()
|
/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/seccomp/ |
D | seccomp_bpf.c | 3299 struct pollfd pollfd; in TEST() local 3354 pollfd.fd = listener; in TEST() 3355 pollfd.events = POLLIN | POLLOUT; in TEST() 3357 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3358 EXPECT_EQ(pollfd.revents, POLLIN); in TEST() 3373 pollfd.fd = listener; in TEST() 3374 pollfd.events = POLLIN | POLLOUT; in TEST() 3376 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3377 EXPECT_EQ(pollfd.revents, POLLOUT); in TEST() 3748 struct pollfd pollfd; in TEST() local [all …]
|
/tools/testing/selftests/net/ |
D | txtimestamp.c | 298 struct pollfd pollfd; in __poll() local 301 memset(&pollfd, 0, sizeof(pollfd)); in __poll() 302 pollfd.fd = fd; in __poll() 303 ret = poll(&pollfd, 1, cfg_poll_timeout); in __poll()
|
D | psock_tpacket.c | 222 struct pollfd pfd; in walk_v1_v2_rx() 371 struct pollfd pfd; in walk_tx() 584 struct pollfd pfd; in walk_v3_rx()
|
/tools/include/nolibc/ |
D | types.h | 79 struct pollfd { struct
|
/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 113 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; in main()
|
/tools/lib/perf/include/internal/ |
D | evlist.h | 26 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/selftests/sync/ |
D | sync.c | 60 struct pollfd fds; in sync_wait()
|
/tools/testing/selftests/ir/ |
D | ir_loopback.c | 167 struct pollfd pfd = { .fd = rlircfd, .events = POLLIN }; in main()
|
/tools/usb/usbip/src/ |
D | usbipd.c | 497 struct pollfd *fds; in do_standalone_mode() 546 fds = calloc(nsockfd, sizeof(struct pollfd)); in do_standalone_mode()
|
/tools/hv/ |
D | hv_vss_daemon.c | 213 struct pollfd pfd; in main()
|