Home
last modified time | relevance | path

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

/linux-4.4.14/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 …]
Dirq.c19 static struct pollfd *pollfds = NULL;
71 pollfds[pollfds_num] = ((struct pollfd) { .fd = fd, in os_create_pollfd()
/linux-4.4.14/arch/tile/gxio/
Diorpc_globals.c19 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()
Diorpc_mpipe.c522 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/
Duserfaultfd.c248 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/
Dselect.c738 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 …]
Dcompat.c1418 COMPAT_SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, in COMPAT_SYSCALL_DEFINE5()
/linux-4.4.14/arch/xtensa/include/asm/
Dsyscall.h20 struct pollfd;
24 asmlinkage long sys_ppoll(struct pollfd __user *ufds, unsigned int nfds,
/linux-4.4.14/tools/lib/api/fd/
Darray.h6 struct pollfd;
22 struct pollfd *entries;
Darray.c26 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/
Dtxtimestamp.c169 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/
Dsched-messaging.c71 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/
Dpoll.h35 struct pollfd { struct
/linux-4.4.14/Documentation/mic/mpssd/
Dmpssd.c477 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/
Devlist.c45 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()
Devlist.h15 struct pollfd;
54 struct fdarray pollfd; member
Dpython.c805 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/
Dtrace-agent-ctl.c52 struct pollfd poll_fd; in wait_order()
/linux-4.4.14/include/linux/
Dthread_info.h42 struct pollfd __user *ufds;
Dpoll.h157 extern int do_sys_poll(struct pollfd __user * ufds, unsigned int nfds,
Dsyscalls.h36 struct pollfd;
622 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
819 asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int,
Dcompat.h545 asmlinkage long compat_sys_ppoll(struct pollfd __user *ufds,
/linux-4.4.14/samples/bpf/
Dtrace_output_user.c53 struct pollfd pfd = { .fd = fd, .events = POLLIN }; in perf_event_poll()
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c234 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/
Ducon.c121 struct pollfd pfd; in main()
/linux-4.4.14/tools/usb/usbip/src/
Dusbipd.c490 struct pollfd *fds; in do_standalone_mode()
542 fds = calloc(nsockfd, sizeof(struct pollfd)); in do_standalone_mode()
/linux-4.4.14/tools/hv/
Dhv_vss_daemon.c147 struct pollfd pfd; in main()
Dhv_kvp_daemon.c1400 struct pollfd pfd; in main()
/linux-4.4.14/Documentation/timers/
Dhpet_example.c134 struct pollfd pfd; in hpet_poll()
/linux-4.4.14/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c169 struct pollfd pfds[1]; in handle_ep0()
/linux-4.4.14/samples/uhid/
Duhid-example.c390 struct pollfd pfds[2]; in main()
/linux-4.4.14/tools/virtio/
Dvirtio_test.c37 struct pollfd fds[1];
/linux-4.4.14/arch/um/kernel/
Dirq.c62 struct pollfd *tmp_pfd; in activate_fd()
/linux-4.4.14/tools/iio/
Dgeneric_buffer.c405 struct pollfd pfd = { in main()
/linux-4.4.14/Documentation/usb/
Dgadget_printer.txt195 struct pollfd fd[1];
245 struct pollfd fd[1];
/linux-4.4.14/tools/perf/
Dbuiltin-top.c439 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()
Dbuiltin-kvm.c945 struct fdarray *fda = &kvm->evlist->pollfd; in kvm_events_live_report()
/linux-4.4.14/arch/s390/kernel/
Dcompat_wrapper.c105 COMPAT_SYSCALL_WRAP3(poll, struct pollfd __user *, ufds, unsigned int, nfds, int, timeout);
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt490 struct pollfd pfd;
526 struct pollfd pfd;
936 struct pollfd pfd;
Dtimestamping.txt326 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
Dnetlink_mmap.txt248 struct pollfd pfds[1];
/linux-4.4.14/tools/firewire/
Dnosy-dump.c917 struct pollfd pollfds[2]; in main()