Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/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.1.27/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.1.27/arch/xtensa/include/asm/
Dsyscall.h20 struct pollfd;
24 asmlinkage long sys_ppoll(struct pollfd __user *ufds, unsigned int nfds,
/linux-4.1.27/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.1.27/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.1.27/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.1.27/include/uapi/asm-generic/
Dpoll.h35 struct pollfd { struct
/linux-4.1.27/tools/perf/util/
Devlist.c44 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init()
110 fdarray__exit(&evlist->pollfd); in perf_evlist__exit()
424 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd()
425 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
433 int pos = fdarray__add(&evlist->pollfd, fd, POLLIN | POLLERR | POLLHUP); in __perf_evlist__add_pollfd()
439 evlist->pollfd.priv[pos].idx = idx; in __perf_evlist__add_pollfd()
454 struct perf_evlist *evlist = container_of(fda, struct perf_evlist, pollfd); in perf_evlist__munmap_filtered()
461 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd()
467 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll()
1008 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap()
Devlist.h13 struct pollfd;
49 struct fdarray pollfd; member
Dpython.c756 for (i = 0; i < evlist->pollfd.nr; ++i) { in pyrf_evlist__get_pollfd()
758 FILE *fp = fdopen(evlist->pollfd.entries[i].fd, "r"); in pyrf_evlist__get_pollfd()
/linux-4.1.27/Documentation/mic/mpssd/
Dmpssd.c472 struct pollfd pollfd; in wait_for_card_driver() local
476 pollfd.fd = fd; in wait_for_card_driver()
480 pollfd.events = POLLIN; in wait_for_card_driver()
481 pollfd.revents = 0; in wait_for_card_driver()
482 err = poll(&pollfd, 1, -1); in wait_for_card_driver()
489 if (pollfd.revents) { in wait_for_card_driver()
494 mic->name, __func__, pollfd.revents); in wait_for_card_driver()
534 struct pollfd net_poll[MAX_NET_FD]; in virtio_net()
730 struct pollfd console_poll[MAX_CONSOLE_FD]; in virtio_console()
1139 struct pollfd block_poll; in virtio_block()
[all …]
/linux-4.1.27/tools/virtio/virtio-trace/
Dtrace-agent-ctl.c52 struct pollfd poll_fd; in wait_order()
/linux-4.1.27/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,
818 asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int,
Dcompat.h545 asmlinkage long compat_sys_ppoll(struct pollfd __user *ufds,
/linux-4.1.27/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.1.27/Documentation/connector/
Ducon.c121 struct pollfd pfd; in main()
/linux-4.1.27/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.1.27/Documentation/timers/
Dhpet_example.c134 struct pollfd pfd; in hpet_poll()
/linux-4.1.27/tools/iio/
Dgeneric_buffer.c307 struct pollfd pfd = { in main()
/linux-4.1.27/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c169 struct pollfd pfds[1]; in handle_ep0()
/linux-4.1.27/samples/uhid/
Duhid-example.c390 struct pollfd pfds[2]; in main()
/linux-4.1.27/tools/hv/
Dhv_vss_daemon.c186 struct pollfd pfd; in main()
Dhv_kvp_daemon.c1431 struct pollfd pfd; in main()
/linux-4.1.27/tools/virtio/
Dvirtio_test.c37 struct pollfd fds[1];
/linux-4.1.27/arch/um/kernel/
Dirq.c62 struct pollfd *tmp_pfd; in activate_fd()
/linux-4.1.27/Documentation/usb/
Dgadget_printer.txt195 struct pollfd fd[1];
245 struct pollfd fd[1];
/linux-4.1.27/tools/perf/
Dbuiltin-top.c433 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN }; in perf_top__handle_keypress()
605 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN }; in display_thread()
Dbuiltin-kvm.c944 struct fdarray *fda = &kvm->evlist->pollfd; in kvm_events_live_report()
/linux-4.1.27/arch/s390/kernel/
Dcompat_wrapper.c128 COMPAT_SYSCALL_WRAP3(poll, struct pollfd __user *, ufds, unsigned int, nfds, int, timeout);
/linux-4.1.27/Documentation/networking/
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
Dpacket_mmap.txt490 struct pollfd pfd;
526 struct pollfd pfd;
936 struct pollfd pfd;
Dnetlink_mmap.txt248 struct pollfd pfds[1];
/linux-4.1.27/tools/firewire/
Dnosy-dump.c917 struct pollfd pollfds[2]; in main()