/Linux-v5.4/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-v5.4/arch/um/os-Linux/ |
D | sigio.c | 38 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/ |
D | evlist.c | 260 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/ |
D | select.c | 829 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/ |
D | restart_block.h | 14 struct pollfd; 49 struct pollfd __user *ufds;
|
/Linux-v5.4/tools/lib/api/fd/ |
D | array.h | 7 struct pollfd; 23 struct pollfd *entries;
|
D | array.c | 25 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/ |
D | userfaultfd.c | 492 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/ |
D | builtin-ftrace.c | 283 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/ |
D | sched-messaging.c | 70 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/ |
D | txtimestamp.c | 203 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/ |
D | xdpsock_user.c | 487 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/ |
D | poll.h | 36 struct pollfd { struct
|
/Linux-v5.4/samples/mic/mpssd/ |
D | mpssd.c | 466 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/ |
D | cec-func-poll.rst | 30 .. 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/ |
D | ubd_user.c | 26 struct pollfd kernel_pollfd;
|
/Linux-v5.4/tools/perf/lib/include/internal/ |
D | evlist.h | 23 struct fdarray pollfd; member
|
/Linux-v5.4/tools/virtio/virtio-trace/ |
D | trace-agent-ctl.c | 50 struct pollfd poll_fd; in wait_order()
|
/Linux-v5.4/tools/testing/selftests/pidfd/ |
D | pidfd_poll_test.c | 29 struct pollfd fds; in main()
|
/Linux-v5.4/Documentation/media/uapi/mediactl/ |
D | request-func-poll.rst | 47 .. 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/ |
D | test_lirc_mode2_user.c | 113 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; in main()
|
/Linux-v5.4/Documentation/media/uapi/v4l/ |
D | func-poll.rst | 30 .. 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/ |
D | sync.c | 60 struct pollfd fds; in sync_wait()
|
/Linux-v5.4/tools/testing/selftests/ir/ |
D | ir_loopback.c | 167 struct pollfd pfd = { .fd = rlircfd, .events = POLLIN }; in main()
|
/Linux-v5.4/tools/testing/selftests/net/ |
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()
|