Home
last modified time | relevance | path

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

123

/Linux-v5.4/tools/leds/
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-v5.4/arch/um/os-Linux/
Dsigio.c38 struct pollfd *poll;
54 struct pollfd *p; in write_sigio_thread()
105 struct pollfd *new; in need_poll()
110 new = uml_kmalloc(n * sizeof(struct pollfd), UM_GFP_ATOMIC); in need_poll()
117 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd)); in need_poll()
169 struct pollfd *p; in add_sigio_fd()
193 current_poll.used * sizeof(struct pollfd)); in add_sigio_fd()
204 struct pollfd *p; in ignore_sigio_fd()
240 static struct pollfd *setup_initial_poll(int fd) in setup_initial_poll()
242 struct pollfd *p; in setup_initial_poll()
[all …]
/Linux-v5.4/tools/perf/lib/
Devlist.c260 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd()
261 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
270 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP); in perf_evlist__add_pollfd()
273 evlist->pollfd.priv[pos].ptr = ptr; in perf_evlist__add_pollfd()
282 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll()
/Linux-v5.4/fs/
Dselect.c829 struct pollfd entries[0];
832 #define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd))
841 static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, in do_pollfd() argument
845 int fd = pollfd->fd; in do_pollfd()
857 filter = demangle_poll(pollfd->events) | EPOLLERR | EPOLLHUP; in do_pollfd()
867 pollfd->revents = mangle_poll(mask); in do_pollfd()
895 struct pollfd * pfd, * pfd_end; in do_poll()
958 sizeof(struct pollfd))
960 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll()
984 sizeof(struct pollfd) * walk->len)) in do_sys_poll()
[all …]
/Linux-v5.4/include/linux/
Drestart_block.h14 struct pollfd;
49 struct pollfd __user *ufds;
/Linux-v5.4/tools/lib/api/fd/
Darray.h7 struct pollfd;
23 struct pollfd *entries;
Darray.c25 size_t size = sizeof(struct pollfd) * nr_alloc; in fdarray__grow()
26 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow()
/Linux-v5.4/tools/testing/selftests/vm/
Duserfaultfd.c492 struct pollfd pollfd[2]; in uffd_poll_thread() local
499 pollfd[0].fd = uffd; in uffd_poll_thread()
500 pollfd[0].events = POLLIN; in uffd_poll_thread()
501 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread()
502 pollfd[1].events = POLLIN; in uffd_poll_thread()
505 ret = poll(pollfd, 2, -1); in uffd_poll_thread()
510 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread()
511 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread()
516 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
518 pollfd[0].revents), exit(1); in uffd_poll_thread()
[all …]
/Linux-v5.4/tools/perf/
Dbuiltin-ftrace.c283 struct pollfd pollfd = { in __cmd_ftrace() local
361 pollfd.fd = trace_fd; in __cmd_ftrace()
371 if (poll(&pollfd, 1, -1) < 0) in __cmd_ftrace()
374 if (pollfd.revents & POLLIN) { in __cmd_ftrace()
/Linux-v5.4/tools/perf/bench/
Dsched-messaging.c70 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local
77 if (poll(&pollfd, 1, -1) != 1) in ready()
/Linux-v5.4/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c203 struct pollfd pollfd; in __poll() local
206 memset(&pollfd, 0, sizeof(pollfd)); in __poll()
207 pollfd.fd = fd; in __poll()
208 ret = poll(&pollfd, 1, cfg_poll_timeout); in __poll()
/Linux-v5.4/samples/bpf/
Dxdpsock_user.c487 struct pollfd *fds) in complete_tx_l2fwd()
548 static void rx_drop(struct xsk_socket_info *xsk, struct pollfd *fds) in rx_drop()
589 struct pollfd fds[MAX_SOCKS + 1]; in rx_drop_all()
636 struct pollfd fds[MAX_SOCKS]; in tx_only_all()
661 static void l2fwd(struct xsk_socket_info *xsk, struct pollfd *fds) in l2fwd()
709 struct pollfd fds[MAX_SOCKS]; in l2fwd_all()
/Linux-v5.4/include/uapi/asm-generic/
Dpoll.h36 struct pollfd { struct
/Linux-v5.4/samples/mic/mpssd/
Dmpssd.c466 struct pollfd pollfd; in wait_for_card_driver() local
474 pollfd.fd = fd; in wait_for_card_driver()
479 pollfd.events = POLLIN; in wait_for_card_driver()
480 pollfd.revents = 0; in wait_for_card_driver()
481 err = poll(&pollfd, 1, -1); in wait_for_card_driver()
488 if (pollfd.revents) { in wait_for_card_driver()
498 mic->name, __func__, pollfd.revents); in wait_for_card_driver()
539 struct pollfd net_poll[MAX_NET_FD]; in virtio_net()
742 struct pollfd console_poll[MAX_CONSOLE_FD]; in virtio_console()
1162 struct pollfd block_poll; in virtio_block()
[all …]
/Linux-v5.4/Documentation/media/uapi/cec/
Dcec-func-poll.rst30 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
54 ``revents`` field of the respective struct :c:type:`pollfd`
/Linux-v5.4/arch/um/drivers/
Dubd_user.c26 struct pollfd kernel_pollfd;
/Linux-v5.4/tools/perf/lib/include/internal/
Devlist.h23 struct fdarray pollfd; member
/Linux-v5.4/tools/virtio/virtio-trace/
Dtrace-agent-ctl.c50 struct pollfd poll_fd; in wait_order()
/Linux-v5.4/tools/testing/selftests/pidfd/
Dpidfd_poll_test.c29 struct pollfd fds; in main()
/Linux-v5.4/Documentation/media/uapi/mediactl/
Drequest-func-poll.rst47 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
71 ``revents`` field of the respective struct :c:type:`pollfd`
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c113 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; in main()
/Linux-v5.4/Documentation/media/uapi/v4l/
Dfunc-poll.rst30 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout )
56 ``revents`` field of the respective :c:func:`struct pollfd` structure
/Linux-v5.4/tools/testing/selftests/sync/
Dsync.c60 struct pollfd fds; in sync_wait()
/Linux-v5.4/tools/testing/selftests/ir/
Dir_loopback.c167 struct pollfd pfd = { .fd = rlircfd, .events = POLLIN }; in main()
/Linux-v5.4/tools/testing/selftests/net/
Dpsock_tpacket.c222 struct pollfd pfd; in walk_v1_v2_rx()
371 struct pollfd pfd; in walk_tx()
584 struct pollfd pfd; in walk_v3_rx()

123