Searched refs:pollfd (Results 1 - 25 of 77) sorted by relevance

1234

/linux-master/tools/leds/
H A Dled_hw_brightness_mon.c30 struct pollfd pollfd; local
55 pollfd.fd = fd;
56 pollfd.events = POLLPRI;
59 ret = poll(&pollfd, 1, -1);
73 ret = lseek(pollfd.fd, 0, SEEK_SET);
/linux-master/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c41 struct pollfd pollfd[2]; local
45 pollfd[0].fd = uffd;
46 pollfd[0].events = POLLIN;
47 pollfd[1].fd = pipefd;
48 pollfd[1].events = POLLIN;
50 r = poll(pollfd, 2, -1);
64 if (pollfd[0].revents & POLLERR) {
69 if (pollfd[1].revents & POLLIN) {
70 r = read(pollfd[
[all...]
/linux-master/tools/lib/api/fd/
H A Darray.h7 struct pollfd;
23 struct pollfd *entries;
H A Darray.c26 size_t size = sizeof(struct pollfd) * nr_alloc;
27 struct pollfd *entries = realloc(fda->entries, size);
38 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr);
93 struct pollfd *entry;
/linux-master/include/linux/
H A Drestart_block.h14 struct pollfd;
50 struct pollfd __user *ufds;
/linux-master/include/uapi/asm-generic/
H A Dpoll.h36 struct pollfd { struct
/linux-master/arch/um/os-Linux/
H A Dsigio.c38 struct pollfd *poll;
54 struct pollfd *p;
105 struct pollfd *new;
110 new = uml_kmalloc(n * sizeof(struct pollfd), UM_GFP_ATOMIC);
117 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd));
169 struct pollfd *p;
192 current_poll.used * sizeof(struct pollfd));
214 struct pollfd *p;
259 static struct pollfd *setup_initial_poll(int fd)
261 struct pollfd *
[all...]
/linux-master/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-pagefault.c88 struct pollfd pollfd; local
94 pollfd.fd = uffd;
95 pollfd.events = POLLIN;
96 if (poll(&pollfd, 1, -1) == -1) {
/linux-master/tools/testing/selftests/mm/
H A Duffd-common.c508 struct pollfd pollfd[2]; local
517 pollfd[0].fd = uffd;
518 pollfd[0].events = POLLIN;
519 pollfd[1].fd = pipefd[cpu*2];
520 pollfd[1].events = POLLIN;
525 ret = poll(pollfd, 2, -1);
531 if (pollfd[1].revents) {
532 if (!(pollfd[1].revents & POLLIN))
533 err("pollfd[
[all...]
/linux-master/arch/um/drivers/
H A Dubd_user.c26 struct pollfd kernel_pollfd;
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c28 struct pollfd fds;
/linux-master/tools/testing/selftests/cgroup/
H A Dwait_inotify.c33 struct pollfd fds = { .events = POLLIN, };
/linux-master/tools/virtio/virtio-trace/
H A Dtrace-agent-ctl.c50 struct pollfd poll_fd;
/linux-master/tools/lib/perf/
H A Devlist.c32 fdarray__init(&evlist->pollfd, 64);
159 fdarray__exit(&evlist->pollfd);
339 if (fdarray__available_entries(&evlist->pollfd) < nfds &&
340 fdarray__grow(&evlist->pollfd, nfds) < 0)
349 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags);
352 evlist->pollfd.priv[pos].ptr = ptr;
370 return fdarray__filter(&evlist->pollfd, revents_and_mask,
376 return fdarray__poll(&evlist->pollfd, timeout);
659 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0)
/linux-master/fs/
H A Dselect.c843 struct pollfd entries[];
846 #define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd))
849 * Fish for pollable events on the pollfd->fd file descriptor. We're only
850 * interested in events matching the pollfd->events mask, and the result
851 * matching that mask is both recorded in pollfd->revents and returned. The
855 static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, argument
859 int fd = pollfd->fd;
871 filter = demangle_poll(pollfd->events) | EPOLLERR | EPOLLHUP;
881 pollfd
[all...]
/linux-master/tools/gpio/
H A Dgpio-watch.c27 struct pollfd pfd;
/linux-master/tools/testing/selftests/thermal/intel/power_floor/
H A Dpower_floor_test.c40 struct pollfd ufd;
/linux-master/tools/perf/
H A Dbuiltin-ftrace.c568 struct pollfd pollfd = { local
621 pollfd.fd = trace_fd;
644 if (poll(&pollfd, 1, -1) < 0)
647 if (pollfd.revents & POLLIN) {
883 struct pollfd pollfd = { local
905 pollfd.fd = trace_fd;
914 if (poll(&pollfd, 1, -1) < 0)
917 if (pollfd
[all...]
H A Dbuiltin-daemon.c446 struct pollfd pollfd = { local
455 int err = poll(&pollfd, 1, 1000);
485 struct pollfd pollfd = { local
494 int err = poll(&pollfd, 1, 1000);
513 struct pollfd pollfd = { .events = POLLIN, }; local
555 pollfd.fd = ack;
557 if (!poll(&pollfd,
[all...]
H A Dbuiltin-record.c108 struct fdarray pollfd; member in struct:record_thread
1115 fdarray__init(&thread_data->pollfd, 64);
1122 for (f = 0; f < evlist->core.pollfd.nr; f++) {
1123 void *ptr = evlist->core.pollfd.priv[f].ptr;
1126 pos = fdarray__dup_entry_from(&thread_data->pollfd, f,
1127 &evlist->core.pollfd);
1130 pr_debug2("thread_data[%p]: pollfd[%d] <- event_fd=%d\n",
1131 thread_data, pos, evlist->core.pollfd.entries[f].fd);
1151 fdarray__exit(&thread_data[t].pollfd);
1175 struct pollfd *e_entrie
1674 struct fdarray *pollfd; local
[all...]
/linux-master/tools/perf/bench/
H A Dsched-messaging.c82 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; local
89 if (poll(&pollfd, 1, -1) != 1)
/linux-master/tools/testing/selftests/bpf/
H A Dtest_lirc_mode2_user.c114 struct pollfd pfd = { .fd = inputfd, .events = POLLIN };
/linux-master/tools/testing/selftests/thermal/intel/workload_hint/
H A Dworkload_hint_test.c51 struct pollfd ufd;
/linux-master/tools/lib/perf/include/internal/
H A Devlist.h32 struct fdarray pollfd; member in struct:perf_evlist
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3367 struct pollfd pollfd; local
3422 pollfd.fd = listener;
3423 pollfd.events = POLLIN | POLLOUT;
3425 EXPECT_GT(poll(&pollfd, 1, -1), 0);
3426 EXPECT_EQ(pollfd.revents, POLLIN);
3441 pollfd.fd = listener;
3442 pollfd.events = POLLIN | POLLOUT;
3444 EXPECT_GT(poll(&pollfd, 1, -1), 0);
3445 EXPECT_EQ(pollfd
3826 struct pollfd pollfd; local
3910 struct pollfd pollfd; local
3967 struct pollfd pollfd; local
[all...]

Completed in 295 milliseconds

1234