/linux-master/tools/leds/ |
H A D | led_hw_brightness_mon.c | 30 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 D | userfaultfd_util.c | 41 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 D | array.h | 7 struct pollfd; 23 struct pollfd *entries;
|
H A D | array.c | 26 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 D | restart_block.h | 14 struct pollfd; 50 struct pollfd __user *ufds;
|
/linux-master/include/uapi/asm-generic/ |
H A D | poll.h | 36 struct pollfd { struct
|
/linux-master/arch/um/os-Linux/ |
H A D | sigio.c | 38 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 D | tm-signal-pagefault.c | 88 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 D | uffd-common.c | 508 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 D | ubd_user.c | 26 struct pollfd kernel_pollfd;
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_poll_test.c | 28 struct pollfd fds;
|
/linux-master/tools/testing/selftests/cgroup/ |
H A D | wait_inotify.c | 33 struct pollfd fds = { .events = POLLIN, };
|
/linux-master/tools/virtio/virtio-trace/ |
H A D | trace-agent-ctl.c | 50 struct pollfd poll_fd;
|
/linux-master/tools/lib/perf/ |
H A D | evlist.c | 32 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 D | select.c | 843 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 D | gpio-watch.c | 27 struct pollfd pfd;
|
/linux-master/tools/testing/selftests/thermal/intel/power_floor/ |
H A D | power_floor_test.c | 40 struct pollfd ufd;
|
/linux-master/tools/perf/ |
H A D | builtin-ftrace.c | 568 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 D | builtin-daemon.c | 446 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 D | builtin-record.c | 108 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 D | sched-messaging.c | 82 struct pollfd pollfd = { .fd = wakefd, .events = POLLIN }; local 89 if (poll(&pollfd, 1, -1) != 1)
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_lirc_mode2_user.c | 114 struct pollfd pfd = { .fd = inputfd, .events = POLLIN };
|
/linux-master/tools/testing/selftests/thermal/intel/workload_hint/ |
H A D | workload_hint_test.c | 51 struct pollfd ufd;
|
/linux-master/tools/lib/perf/include/internal/ |
H A D | evlist.h | 32 struct fdarray pollfd; member in struct:perf_evlist
|
/linux-master/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 3367 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...] |