| /linux/tools/leds/ |
| H A 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()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | uffd-common.c | 536 struct pollfd pollfd[2]; in uffd_poll_thread() local 545 pollfd[0].fd = gopts->uffd; in uffd_poll_thread() 546 pollfd[0].events = POLLIN; in uffd_poll_thread() 547 pollfd[1].fd = gopts->pipefd[cpu*2]; in uffd_poll_thread() 548 pollfd[1].events = POLLIN; in uffd_poll_thread() 553 ret = poll(pollfd, 2, -1); in uffd_poll_thread() 559 if (pollfd[1].revents) { in uffd_poll_thread() 560 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread() 561 err("pollfd[ in uffd_poll_thread() [all...] |
| /linux/tools/testing/selftests/powerpc/tm/ |
| H A 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()
|
| /linux/tools/lib/api/fd/ |
| H A 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() 39 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow() 94 struct pollfd *entry; in fdarray__dup_entry_from()
|
| H A D | array.h | 7 struct pollfd; 23 struct pollfd *entries;
|
| /linux/tools/lib/perf/ |
| H A D | evlist.c | 32 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init() 245 fdarray__exit(&evlist->pollfd); in perf_evlist__exit() 425 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 426 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd() 435 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags); in perf_evlist__add_pollfd() 438 evlist->pollfd.priv[pos].ptr = ptr; in perf_evlist__add_pollfd() 456 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd() 462 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll() 745 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ops()
|
| /linux/tools/perf/ |
| H A 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 554 pollfd.fd = ack; in daemon_session__control() 556 if (!poll(&pollfd, in daemon_session__control() [all...] |
| H A D | builtin-ftrace.c | 742 struct pollfd pollfd = { in __cmd_ftrace() 786 pollfd.fd = trace_fd; in __cmd_ftrace() 809 if (poll(&pollfd, 1, -1) < 0) in __cmd_ftrace() 812 if (pollfd.revents & POLLIN) { in __cmd_ftrace() 1127 struct pollfd pollfd = { in __cmd_latency() 1137 pollfd.fd = trace_fd; in __cmd_latency() 1157 if (poll(&pollfd, 1, -1) < 0) in __cmd_latency() 1160 if (pollfd in __cmd_latency() 746 struct pollfd pollfd = { __cmd_ftrace() local 1131 struct pollfd pollfd = { __cmd_latency() local [all...] |
| H A D | builtin-record.c | 112 struct fdarray pollfd; 1102 fdarray__init(&thread_data->pollfd, 64); in record__thread_data_init_maps() 1109 for (f = 0; f < evlist__core(evlist)->pollfd.nr; f++) { in record__thread_data_init_pollfd() 1110 void *ptr = evlist__core(evlist)->pollfd.priv[f].ptr; in record__thread_data_init_pollfd() 1113 pos = fdarray__dup_entry_from(&thread_data->pollfd, f, in record__thread_data_init_pollfd() 1114 &evlist__core(evlist)->pollfd); in record__thread_data_init_pollfd() 1117 pr_debug2("thread_data[%p]: pollfd[%d] <- event_fd=%d\n", in record__thread_data_init_pollfd() 1119 evlist__core(evlist)->pollfd.entries[f].fd); in record__thread_data_init_pollfd() 1139 fdarray__exit(&thread_data[t].pollfd); in record__free_thread_data() 1163 struct pollfd *e_entrie in record__map_thread_evlist_pollfd_indexes() 110 struct fdarray pollfd; global() member 1743 struct fdarray *pollfd; record__thread() local [all...] |
| /linux/tools/perf/util/ |
| H A D | intel-tpebs.c | 249 struct pollfd pollfd = { .events = POLLIN, }; in __sample_reader() 278 pollfd.fd = ack_fd[0]; in tpebs_send_record_cmd() 286 if (!poll(&pollfd, 1, 500)) { in tpebs_send_record_cmd() 299 if (!(pollfd.revents & POLLIN)) { in tpebs_send_record_cmd() 255 struct pollfd pollfd = { .events = POLLIN, }; tpebs_send_record_cmd() local
|
| /linux/tools/perf/bench/ |
| H A D | sched-messaging.c | 82 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local 89 if (poll(&pollfd, 1, -1) != 1) in ready()
|
| /linux/Documentation/userspace-api/media/mediactl/ |
| H A D | request-func-poll.rst | 22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 44 ``revents`` field of the respective struct :c:type:`pollfd`
|
| /linux/tools/testing/selftests/seccomp/ |
| H A D | seccomp_bpf.c | 3422 struct pollfd pollfd; in TEST() 3477 pollfd.fd = listener; in TEST() 3478 pollfd.events = POLLIN | POLLOUT; in TEST() 3480 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3481 EXPECT_EQ(pollfd.revents, POLLIN); in TEST() 3496 pollfd.fd = listener; in TEST() 3497 pollfd.events = POLLIN | POLLOUT; in TEST() 3499 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3500 EXPECT_EQ(pollfd in TEST() 3418 struct pollfd pollfd; TEST() local 3881 struct pollfd pollfd; TEST() local 3965 struct pollfd pollfd; TEST() local 4076 struct pollfd pollfd; TEST() local [all...] |
| /linux/tools/testing/selftests/net/ |
| H A D | txtimestamp.c | 300 struct pollfd pollfd; in __poll() 303 memset(&pollfd, 0, sizeof(pollfd)); in __poll() 304 pollfd.fd = fd; in __poll() 305 ret = poll(&pollfd, 1, cfg_poll_timeout); in __poll() 302 struct pollfd pollfd; __poll() local
|
| /linux/Documentation/userspace-api/media/cec/ |
| H A D | cec-func-poll.rst | 22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 44 ``revents`` field of the respective struct :c:type:`pollfd`
|
| /linux/include/uapi/asm-generic/ |
| H A D | poll.h | 36 struct pollfd { struct
|
| /linux/tools/testing/selftests/filesystems/epoll/ |
| H A D | epoll_wakeup_test.c | 63 struct pollfd pfd; in waiter_entry1ap() 79 struct pollfd pfd; in waiter_entry1o() 108 struct pollfd pfd; in waiter_entry2a() 135 struct pollfd pfd; in emitter_entry1() 323 struct pollfd pfd; in TEST() 362 struct pollfd pfd; in TEST() 402 struct pollfd pfd; in TEST() 448 struct pollfd pfd; in TEST() 1024 struct pollfd pfd; in TEST() 1072 struct pollfd pf in TEST() [all...] |
| /linux/tools/testing/selftests/filesystems/ |
| H A D | readdir_hold.h | 134 struct pollfd pfd = { .fd = h->uffd, .events = POLLIN }; in readdir_hold_faulted() 173 struct pollfd pfd; in readdir_hold_check()
|
| /linux/tools/testing/selftests/ftrace/ |
| H A D | poll.c | 24 struct pollfd pfd = {.events = POLLIN}; in main()
|
| /linux/arch/um/drivers/ |
| H A D | ubd_user.c | 26 static struct pollfd kernel_pollfd;
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | wait_inotify.c | 33 struct pollfd fds = { .events = POLLIN, }; in main()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_poll_test.c | 28 struct pollfd fds; in main()
|
| /linux/tools/virtio/virtio-trace/ |
| H A D | trace-agent-ctl.c | 50 struct pollfd poll_fd; in wait_order()
|
| /linux/tools/gpio/ |
| H A D | gpio-watch.c | 27 struct pollfd pfd; in main()
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | mixer-test.c | 44 struct pollfd pollfd; 203 &card_data->pollfd, 1); 248 err = poll(&(ctl->card->pollfd), 1, timeout); in wait_for_event() 259 &(ctl->card->pollfd), in wait_for_event() 38 struct pollfd pollfd; global() member
|