Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 – 25 of 73) sorted by relevance

123

/linux/tools/leds/
A Dled_hw_brightness_mon.c30 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/arch/um/os-Linux/
A Dsigio.c38 struct pollfd *poll;
54 struct pollfd *p; in write_sigio_thread()
105 struct pollfd *new; in need_poll()
169 struct pollfd *p; in __add_sigio_fd()
192 current_poll.used * sizeof(struct pollfd)); in __add_sigio_fd()
214 struct pollfd *p; in __ignore_sigio_fd()
259 static struct pollfd *setup_initial_poll(int fd) in setup_initial_poll()
261 struct pollfd *p; in setup_initial_poll()
269 *p = ((struct pollfd) { .fd = fd, in setup_initial_poll()
277 struct pollfd *p; in write_sigio_workaround()
[all …]
/linux/tools/testing/selftests/kvm/
A Ddemand_paging_test.c143 struct pollfd pollfd[2]; in uffd_handler_thread_fn() local
148 pollfd[0].fd = uffd; in uffd_handler_thread_fn()
149 pollfd[0].events = POLLIN; in uffd_handler_thread_fn()
150 pollfd[1].fd = pipefd; in uffd_handler_thread_fn()
151 pollfd[1].events = POLLIN; in uffd_handler_thread_fn()
153 r = poll(pollfd, 2, -1); in uffd_handler_thread_fn()
167 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn()
172 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn()
173 r = read(pollfd[1].fd, &tmp_chr, 1); in uffd_handler_thread_fn()
179 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
/linux/tools/testing/selftests/powerpc/tm/
A Dtm-signal-pagefault.c88 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/perf/
A Devlist.c31 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()
596 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ops()
/linux/fs/
A Dselect.c839 struct pollfd entries[];
851 static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, in do_pollfd() argument
855 int fd = pollfd->fd; in do_pollfd()
867 filter = demangle_poll(pollfd->events) | EPOLLERR | EPOLLHUP; in do_pollfd()
877 pollfd->revents = mangle_poll(mask); in do_pollfd()
905 struct pollfd * pfd, * pfd_end; in do_poll()
968 sizeof(struct pollfd))
994 sizeof(struct pollfd) * walk->len)) in do_sys_poll()
1018 struct pollfd *fds = walk->entries; in do_sys_poll()
1045 struct pollfd __user *ufds = restart_block->poll.ufds; in do_restart_poll()
[all …]
/linux/include/linux/
A Drestart_block.h14 struct pollfd;
50 struct pollfd __user *ufds;
/linux/tools/lib/api/fd/
A Darray.c26 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()
A Darray.h7 struct pollfd;
23 struct pollfd *entries;
/linux/tools/testing/selftests/vm/
A Duserfaultfd.c714 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 …]
/linux/tools/perf/
A Dbuiltin-daemon.c446 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()
A Dbuiltin-ftrace.c573 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()
/linux/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c3299 struct pollfd pollfd; in TEST() local
3354 pollfd.fd = listener; in TEST()
3373 pollfd.fd = listener; in TEST()
3748 struct pollfd pollfd; in TEST() local
3776 pollfd.fd = listener; in TEST()
3784 pollfd.fd = listener; in TEST()
3832 struct pollfd pollfd; in TEST() local
3869 pollfd.fd = 200; in TEST()
3870 pollfd.events = POLLHUP; in TEST()
3886 struct pollfd pollfd; in TEST() local
[all …]
/linux/tools/perf/bench/
A Dsched-messaging.c69 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local
76 if (poll(&pollfd, 1, -1) != 1) in ready()
/linux/tools/testing/selftests/net/
A Dtxtimestamp.c298 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/Documentation/userspace-api/media/mediactl/
A Drequest-func-poll.rst22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
44 ``revents`` field of the respective struct :c:type:`pollfd`
/linux/Documentation/userspace-api/media/cec/
A Dcec-func-poll.rst22 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
44 ``revents`` field of the respective struct :c:type:`pollfd`
/linux/samples/bpf/
A Dxsk_fwd.c542 struct pollfd pollfd = { in port_rx_burst() local
547 poll(&pollfd, 1, 0); in port_rx_burst()
569 struct pollfd pollfd = { in port_rx_burst() local
574 poll(&pollfd, 1, 0); in port_rx_burst()
/linux/tools/testing/selftests/filesystems/epoll/
A Depoll_wakeup_test.c63 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/include/uapi/asm-generic/
A Dpoll.h36 struct pollfd { struct
/linux/arch/um/drivers/
A Dubd_user.c26 struct pollfd kernel_pollfd;
/linux/tools/virtio/virtio-trace/
A Dtrace-agent-ctl.c50 struct pollfd poll_fd; in wait_order()
/linux/tools/testing/selftests/pidfd/
A Dpidfd_poll_test.c28 struct pollfd fds; in main()
/linux/tools/gpio/
A Dgpio-watch.c27 struct pollfd pfd; in main()
/linux/tools/testing/selftests/bpf/
A Dtest_lirc_mode2_user.c113 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; in main()

Completed in 71 milliseconds

123