/Linux-v4.19/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-v4.19/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-v4.19/arch/xtensa/include/asm/ |
D | syscall.h | 20 struct pollfd; 24 asmlinkage long sys_ppoll(struct pollfd __user *ufds, unsigned int nfds,
|
/Linux-v4.19/include/linux/ |
D | restart_block.h | 14 struct pollfd; 49 struct pollfd __user *ufds;
|
/Linux-v4.19/fs/ |
D | select.c | 795 struct pollfd entries[0]; 798 #define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd)) 807 static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, in do_pollfd() argument 811 int fd = pollfd->fd; in do_pollfd() 823 filter = demangle_poll(pollfd->events) | EPOLLERR | EPOLLHUP; in do_pollfd() 833 pollfd->revents = mangle_poll(mask); in do_pollfd() 861 struct pollfd * pfd, * pfd_end; in do_poll() 924 sizeof(struct pollfd)) 926 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() 950 sizeof(struct pollfd) * walk->len)) in do_sys_poll() [all …]
|
/Linux-v4.19/tools/lib/api/fd/ |
D | array.h | 7 struct pollfd; 23 struct pollfd *entries;
|
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()
|
/Linux-v4.19/tools/perf/ |
D | builtin-ftrace.c | 281 struct pollfd pollfd = { in __cmd_ftrace() local 353 pollfd.fd = trace_fd; in __cmd_ftrace() 363 if (poll(&pollfd, 1, -1) < 0) in __cmd_ftrace() 366 if (pollfd.revents & POLLIN) { in __cmd_ftrace()
|
/Linux-v4.19/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.c | 171 struct pollfd pollfd; in __poll() local 174 memset(&pollfd, 0, sizeof(pollfd)); in __poll() 175 pollfd.fd = fd; in __poll() 176 ret = poll(&pollfd, 1, cfg_poll_timeout); in __poll()
|
/Linux-v4.19/tools/testing/selftests/vm/ |
D | userfaultfd.c | 445 struct pollfd pollfd[2]; in uffd_poll_thread() local 453 pollfd[0].fd = uffd; in uffd_poll_thread() 454 pollfd[0].events = POLLIN; in uffd_poll_thread() 455 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 456 pollfd[1].events = POLLIN; in uffd_poll_thread() 459 ret = poll(pollfd, 2, -1); in uffd_poll_thread() 464 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread() 465 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread() 470 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 472 pollfd[0].revents), exit(1); in uffd_poll_thread() [all …]
|
/Linux-v4.19/tools/perf/bench/ |
D | sched-messaging.c | 73 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local 80 if (poll(&pollfd, 1, -1) != 1) in ready()
|
/Linux-v4.19/Documentation/media/uapi/cec/ |
D | cec-func-poll.rst | 23 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 47 ``revents`` field of the respective struct :c:type:`pollfd`
|
/Linux-v4.19/include/uapi/asm-generic/ |
D | poll.h | 36 struct pollfd { struct
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 116 struct pollfd pfd = { .fd = fd, .events = POLLIN }; in perf_event_poll() 176 struct pollfd *pfds; in perf_event_poller_multi()
|
D | test_lirc_mode2_user.c | 111 struct pollfd pfd = { .fd = lircfd, .events = POLLIN }; in main()
|
/Linux-v4.19/samples/mic/mpssd/ |
D | mpssd.c | 477 struct pollfd pollfd; in wait_for_card_driver() local 485 pollfd.fd = fd; in wait_for_card_driver() 490 pollfd.events = POLLIN; in wait_for_card_driver() 491 pollfd.revents = 0; in wait_for_card_driver() 492 err = poll(&pollfd, 1, -1); in wait_for_card_driver() 499 if (pollfd.revents) { in wait_for_card_driver() 509 mic->name, __func__, pollfd.revents); in wait_for_card_driver() 550 struct pollfd net_poll[MAX_NET_FD]; in virtio_net() 753 struct pollfd console_poll[MAX_CONSOLE_FD]; in virtio_console() 1173 struct pollfd block_poll; in virtio_block() [all …]
|
/Linux-v4.19/arch/um/drivers/ |
D | ubd_user.c | 26 struct pollfd kernel_pollfd;
|
/Linux-v4.19/tools/perf/util/ |
D | evlist.c | 49 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init() 130 fdarray__exit(&evlist->pollfd); in perf_evlist__exit() 447 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 448 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd() 457 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP); in __perf_evlist__add_pollfd() 463 evlist->pollfd.priv[pos].ptr = map; in __perf_evlist__add_pollfd() 487 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd() 493 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll() 1038 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ex()
|
D | evlist.h | 19 struct pollfd; 44 struct fdarray pollfd; member
|
/Linux-v4.19/tools/virtio/virtio-trace/ |
D | trace-agent-ctl.c | 52 struct pollfd poll_fd; in wait_order()
|
/Linux-v4.19/Documentation/media/uapi/v4l/ |
D | func-poll.rst | 23 .. c:function:: int poll( struct pollfd *ufds, unsigned int nfds, int timeout ) 49 ``revents`` field of the respective :c:func:`struct pollfd` structure
|
/Linux-v4.19/tools/testing/selftests/sync/ |
D | sync.c | 60 struct pollfd fds; in sync_wait()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | psock_tpacket.c | 236 struct pollfd pfd; in walk_v1_v2_rx() 385 struct pollfd pfd; in walk_tx() 598 struct pollfd pfd; in walk_v3_rx()
|
D | udpgso_bench_rx.c | 57 struct pollfd pfd; in do_poll()
|
/Linux-v4.19/samples/connector/ |
D | ucon.c | 121 struct pollfd pfd; in main()
|