/Linux-v6.1/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()
|
/Linux-v6.1/arch/um/os-Linux/ |
D | sigio.c | 39 struct pollfd *poll; 55 struct pollfd *p; in write_sigio_thread() 104 struct pollfd *new; in need_poll() 109 new = uml_kmalloc(n * sizeof(struct pollfd), UM_GFP_ATOMIC); in need_poll() 116 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd)); in need_poll() 168 struct pollfd *p; in __add_sigio_fd() 191 current_poll.used * sizeof(struct pollfd)); in __add_sigio_fd() 213 struct pollfd *p; in __ignore_sigio_fd() 258 static struct pollfd *setup_initial_poll(int fd) in setup_initial_poll() 260 struct pollfd *p; in setup_initial_poll() [all …]
|
/Linux-v6.1/tools/testing/selftests/kvm/ |
D | demand_paging_test.c | 141 struct pollfd pollfd[2]; in uffd_handler_thread_fn() local 146 pollfd[0].fd = uffd; in uffd_handler_thread_fn() 147 pollfd[0].events = POLLIN; in uffd_handler_thread_fn() 148 pollfd[1].fd = pipefd; in uffd_handler_thread_fn() 149 pollfd[1].events = POLLIN; in uffd_handler_thread_fn() 151 r = poll(pollfd, 2, -1); in uffd_handler_thread_fn() 165 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn() 170 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn() 171 r = read(pollfd[1].fd, &tmp_chr, 1); in uffd_handler_thread_fn() 177 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
|
/Linux-v6.1/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()
|
/Linux-v6.1/tools/lib/api/fd/ |
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()
|
D | array.h | 7 struct pollfd; 23 struct pollfd *entries;
|
/Linux-v6.1/include/linux/ |
D | restart_block.h | 14 struct pollfd; 50 struct pollfd __user *ufds;
|
/Linux-v6.1/tools/lib/perf/ |
D | evlist.c | 32 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init() 144 fdarray__exit(&evlist->pollfd); in perf_evlist__exit() 318 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 319 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd() 328 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags); in perf_evlist__add_pollfd() 331 evlist->pollfd.priv[pos].ptr = ptr; in perf_evlist__add_pollfd() 349 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd() 355 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll() 638 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ops()
|
/Linux-v6.1/fs/ |
D | select.c | 843 struct pollfd entries[]; 846 #define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd)) 855 static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, in do_pollfd() argument 859 int fd = pollfd->fd; in do_pollfd() 871 filter = demangle_poll(pollfd->events) | EPOLLERR | EPOLLHUP; in do_pollfd() 881 pollfd->revents = mangle_poll(mask); in do_pollfd() 909 struct pollfd * pfd, * pfd_end; in do_poll() 972 sizeof(struct pollfd)) 974 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() 998 sizeof(struct pollfd) * walk->len)) in do_sys_poll() [all …]
|
/Linux-v6.1/tools/perf/ |
D | builtin-ftrace.c | 568 struct pollfd pollfd = { in __cmd_ftrace() local 621 pollfd.fd = trace_fd; in __cmd_ftrace() 644 if (poll(&pollfd, 1, -1) < 0) in __cmd_ftrace() 647 if (pollfd.revents & POLLIN) { in __cmd_ftrace() 881 struct pollfd pollfd = { in __cmd_latency() local 903 pollfd.fd = trace_fd; in __cmd_latency() 912 if (poll(&pollfd, 1, -1) < 0) in __cmd_latency() 915 if (pollfd.revents & POLLIN) { in __cmd_latency()
|
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-record.c | 109 struct fdarray pollfd; member 1051 fdarray__init(&thread_data->pollfd, 64); in record__thread_data_init_pollfd() 1058 for (f = 0; f < evlist->core.pollfd.nr; f++) { in record__thread_data_init_pollfd() 1059 void *ptr = evlist->core.pollfd.priv[f].ptr; in record__thread_data_init_pollfd() 1062 pos = fdarray__dup_entry_from(&thread_data->pollfd, f, in record__thread_data_init_pollfd() 1063 &evlist->core.pollfd); in record__thread_data_init_pollfd() 1067 thread_data, pos, evlist->core.pollfd.entries[f].fd); in record__thread_data_init_pollfd() 1087 fdarray__exit(&thread_data[t].pollfd); in record__free_thread_data() 1111 struct pollfd *e_entries = evlist->core.pollfd.entries; in record__update_evlist_pollfd_from_thread() 1112 struct pollfd *t_entries = thread_data->pollfd.entries; in record__update_evlist_pollfd_from_thread() [all …]
|
/Linux-v6.1/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()
|
/Linux-v6.1/tools/testing/selftests/vm/ |
D | userfaultfd.c | 813 struct pollfd pollfd[2]; in uffd_poll_thread() local 819 pollfd[0].fd = uffd; in uffd_poll_thread() 820 pollfd[0].events = POLLIN; in uffd_poll_thread() 821 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 822 pollfd[1].events = POLLIN; in uffd_poll_thread() 825 ret = poll(pollfd, 2, -1); in uffd_poll_thread() 831 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread() 832 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread() 836 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 837 err("pollfd[0].revents %d", pollfd[0].revents); in uffd_poll_thread() [all …]
|
/Linux-v6.1/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3350 struct pollfd pollfd; in TEST() local 3405 pollfd.fd = listener; in TEST() 3406 pollfd.events = POLLIN | POLLOUT; in TEST() 3408 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3409 EXPECT_EQ(pollfd.revents, POLLIN); in TEST() 3424 pollfd.fd = listener; in TEST() 3425 pollfd.events = POLLIN | POLLOUT; in TEST() 3427 EXPECT_GT(poll(&pollfd, 1, -1), 0); in TEST() 3428 EXPECT_EQ(pollfd.revents, POLLOUT); in TEST() 3802 struct pollfd pollfd; in TEST() local [all …]
|
/Linux-v6.1/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()
|
/Linux-v6.1/Documentation/userspace-api/media/mediactl/ |
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-v6.1/Documentation/userspace-api/media/cec/ |
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-v6.1/include/uapi/asm-generic/ |
D | poll.h | 36 struct pollfd { struct
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/arch/um/drivers/ |
D | ubd_user.c | 26 struct pollfd kernel_pollfd;
|
/Linux-v6.1/tools/testing/selftests/cgroup/ |
D | wait_inotify.c | 33 struct pollfd fds = { .events = POLLIN, }; in main()
|
/Linux-v6.1/tools/virtio/virtio-trace/ |
D | trace-agent-ctl.c | 50 struct pollfd poll_fd; in wait_order()
|
/Linux-v6.1/tools/testing/selftests/pidfd/ |
D | pidfd_poll_test.c | 28 struct pollfd fds; in main()
|
/Linux-v6.1/tools/testing/selftests/alsa/ |
D | mixer-test.c | 35 struct pollfd pollfd; member 206 &card_data->pollfd, 1); in find_controls() 237 err = poll(&(ctl->card->pollfd), 1, timeout); in wait_for_event() 248 &(ctl->card->pollfd), in wait_for_event()
|