/linux-4.4.14/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 …]
|
D | irq.c | 19 static struct pollfd *pollfds = NULL; 71 pollfds[pollfds_num] = ((struct pollfd) { .fd = fd, in os_create_pollfd()
|
/linux-4.4.14/arch/tile/gxio/ |
D | iorpc_globals.c | 19 union iorpc_pollfd pollfd; member 27 params->pollfd.kernel.cookie = pollfd_cookie; in __iorpc_arm_pollfd() 36 union iorpc_pollfd pollfd; member 44 params->pollfd.kernel.cookie = pollfd_cookie; in __iorpc_close_pollfd()
|
D | iorpc_mpipe.c | 522 union iorpc_pollfd pollfd; member 530 params->pollfd.kernel.cookie = pollfd_cookie; in gxio_mpipe_arm_pollfd() 539 union iorpc_pollfd pollfd; member 547 params->pollfd.kernel.cookie = pollfd_cookie; in gxio_mpipe_close_pollfd()
|
/linux-4.4.14/tools/testing/selftests/vm/ |
D | userfaultfd.c | 248 struct pollfd pollfd[2]; in uffd_poll_thread() local 255 pollfd[0].fd = uffd; in uffd_poll_thread() 256 pollfd[0].events = POLLIN; in uffd_poll_thread() 257 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 258 pollfd[1].events = POLLIN; in uffd_poll_thread() 261 ret = poll(pollfd, 2, -1); in uffd_poll_thread() 266 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread() 267 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread() 272 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 274 pollfd[0].revents), exit(1); in uffd_poll_thread()
|
/linux-4.4.14/fs/ |
D | select.c | 738 struct pollfd entries[0]; 741 #define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd)) 750 static inline unsigned int do_pollfd(struct pollfd *pollfd, poll_table *pwait, in do_pollfd() argument 758 fd = pollfd->fd; in do_pollfd() 765 pwait->_key = pollfd->events|POLLERR|POLLHUP; in do_pollfd() 772 mask &= pollfd->events | POLLERR | POLLHUP; in do_pollfd() 776 pollfd->revents = mask; in do_pollfd() 805 struct pollfd * pfd, * pfd_end; in do_poll() 868 sizeof(struct pollfd)) 870 int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, in do_sys_poll() [all …]
|
D | compat.c | 1418 COMPAT_SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, in COMPAT_SYSCALL_DEFINE5()
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | syscall.h | 20 struct pollfd; 24 asmlinkage long sys_ppoll(struct pollfd __user *ufds, unsigned int nfds,
|
/linux-4.4.14/tools/lib/api/fd/ |
D | array.h | 6 struct pollfd; 22 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-4.4.14/Documentation/networking/timestamping/ |
D | txtimestamp.c | 169 struct pollfd pollfd; in __poll() local 172 memset(&pollfd, 0, sizeof(pollfd)); in __poll() 173 pollfd.fd = fd; in __poll() 174 ret = poll(&pollfd, 1, 100); in __poll()
|
/linux-4.4.14/tools/perf/bench/ |
D | sched-messaging.c | 71 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; in ready() local 78 if (poll(&pollfd, 1, -1) != 1) in ready()
|
/linux-4.4.14/include/uapi/asm-generic/ |
D | poll.h | 35 struct pollfd { struct
|
/linux-4.4.14/Documentation/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-4.4.14/tools/perf/util/ |
D | evlist.c | 45 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init() 112 fdarray__exit(&evlist->pollfd); in perf_evlist__exit() 487 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 488 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd() 496 int pos = fdarray__add(&evlist->pollfd, fd, POLLIN | POLLERR | POLLHUP); in __perf_evlist__add_pollfd() 502 evlist->pollfd.priv[pos].idx = idx; in __perf_evlist__add_pollfd() 517 struct perf_evlist *evlist = container_of(fda, struct perf_evlist, pollfd); in perf_evlist__munmap_filtered() 524 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd() 530 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll() 1143 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ex()
|
D | evlist.h | 15 struct pollfd; 54 struct fdarray pollfd; member
|
D | python.c | 805 for (i = 0; i < evlist->pollfd.nr; ++i) { in pyrf_evlist__get_pollfd() 807 FILE *fp = fdopen(evlist->pollfd.entries[i].fd, "r"); in pyrf_evlist__get_pollfd()
|
/linux-4.4.14/tools/virtio/virtio-trace/ |
D | trace-agent-ctl.c | 52 struct pollfd poll_fd; in wait_order()
|
/linux-4.4.14/include/linux/ |
D | thread_info.h | 42 struct pollfd __user *ufds;
|
D | poll.h | 157 extern int do_sys_poll(struct pollfd __user * ufds, unsigned int nfds,
|
D | syscalls.h | 36 struct pollfd; 622 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds, 819 asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int,
|
D | compat.h | 545 asmlinkage long compat_sys_ppoll(struct pollfd __user *ufds,
|
/linux-4.4.14/samples/bpf/ |
D | trace_output_user.c | 53 struct pollfd pfd = { .fd = fd, .events = POLLIN }; in perf_event_poll()
|
/linux-4.4.14/tools/testing/selftests/net/ |
D | psock_tpacket.c | 234 struct pollfd pfd; in walk_v1_v2_rx() 353 struct pollfd pfd; in walk_v1_v2_tx() 542 struct pollfd pfd; in walk_v3_rx()
|
/linux-4.4.14/Documentation/connector/ |
D | ucon.c | 121 struct pollfd pfd; in main()
|
/linux-4.4.14/tools/usb/usbip/src/ |
D | usbipd.c | 490 struct pollfd *fds; in do_standalone_mode() 542 fds = calloc(nsockfd, sizeof(struct pollfd)); in do_standalone_mode()
|
/linux-4.4.14/tools/hv/ |
D | hv_vss_daemon.c | 147 struct pollfd pfd; in main()
|
D | hv_kvp_daemon.c | 1400 struct pollfd pfd; in main()
|
/linux-4.4.14/Documentation/timers/ |
D | hpet_example.c | 134 struct pollfd pfd; in hpet_poll()
|
/linux-4.4.14/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 169 struct pollfd pfds[1]; in handle_ep0()
|
/linux-4.4.14/samples/uhid/ |
D | uhid-example.c | 390 struct pollfd pfds[2]; in main()
|
/linux-4.4.14/tools/virtio/ |
D | virtio_test.c | 37 struct pollfd fds[1];
|
/linux-4.4.14/arch/um/kernel/ |
D | irq.c | 62 struct pollfd *tmp_pfd; in activate_fd()
|
/linux-4.4.14/tools/iio/ |
D | generic_buffer.c | 405 struct pollfd pfd = { in main()
|
/linux-4.4.14/Documentation/usb/ |
D | gadget_printer.txt | 195 struct pollfd fd[1]; 245 struct pollfd fd[1];
|
/linux-4.4.14/tools/perf/ |
D | builtin-top.c | 439 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN }; in perf_top__handle_keypress() 614 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN }; in display_thread()
|
D | builtin-kvm.c | 945 struct fdarray *fda = &kvm->evlist->pollfd; in kvm_events_live_report()
|
/linux-4.4.14/arch/s390/kernel/ |
D | compat_wrapper.c | 105 COMPAT_SYSCALL_WRAP3(poll, struct pollfd __user *, ufds, unsigned int, nfds, int, timeout);
|
/linux-4.4.14/Documentation/networking/ |
D | packet_mmap.txt | 490 struct pollfd pfd; 526 struct pollfd pfd; 936 struct pollfd pfd;
|
D | timestamping.txt | 326 POLLERR in pollfd.revents if any data is ready on the error queue. 327 There is no need to pass this flag in pollfd.events. This flag is
|
D | netlink_mmap.txt | 248 struct pollfd pfds[1];
|
/linux-4.4.14/tools/firewire/ |
D | nosy-dump.c | 917 struct pollfd pollfds[2]; in main()
|