/linux-master/include/linux/ |
H A D | eventpoll.h | 74 epoll_put_uevent(__poll_t revents, __u64 data, 78 epoll_put_uevent(__poll_t revents, __u64 data, argument 81 if (__put_user(revents, &uevent->events) ||
|
/linux-master/tools/lib/api/fd/ |
H A D | array.h | 45 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags); 48 int fdarray__filter(struct fdarray *fda, short revents,
|
H A D | array.c | 76 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags) argument 85 fda->entries[fda->nr].events = revents; 108 int fdarray__filter(struct fdarray *fda, short revents, argument 121 if (fda->entries[fd].revents & revents) { 125 fda->entries[fd].revents = fda->entries[fd].events = 0;
|
/linux-master/tools/perf/tests/ |
H A D | fdarray.c | 7 static void fdarray__init_revents(struct fdarray *fda, short revents) argument 15 fda->entries[fd].events = revents; 16 fda->entries[fd].revents = revents; 58 fda->entries[2].revents = POLLIN; 70 fda->entries[0].revents = POLLIN; 71 fda->entries[3].revents = POLLIN; 109 pr_debug("\n%d: fda->entries[%d].revents(%d) != %d!", \ 162 DEFINE_SUITE("Filter fds with revents mask in a fdarray", fdarray__filter);
|
H A D | builtin-test.c | 320 if (!out_done && pfds[0].revents) { 334 if (!err_done && pfds[1].revents) {
|
/linux-master/include/uapi/asm-generic/ |
H A D | poll.h | 39 short revents; member in struct:pollfd
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_poll_test.c | 97 if (!(fds.revents & POLLIN)) 100 fds.revents);
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 64 if (pollfd[0].revents & POLLERR) { 65 pr_info("uffd revents has POLLERR"); 69 if (pollfd[1].revents & POLLIN) { 76 if (!(pollfd[0].revents & POLLIN))
|
/linux-master/tools/testing/selftests/cgroup/ |
H A D | wait_inotify.c | 73 if ((ret > 0) && (fds.revents & POLLIN))
|
/linux-master/samples/nitro_enclaves/ |
H A D | ne_ioctl_sample.c | 228 printf("Poll received value 0x%x\n", fds[0].revents); 230 if (fds[0].revents & POLLHUP) { 236 if (fds[0].revents & POLLNVAL) { 714 if ((fds[0].revents & POLLIN) == 0) { 715 printf("Poll received value %d\n", fds[0].revents);
|
/linux-master/samples/uhid/ |
H A D | uhid-example.c | 441 if (pfds[0].revents & POLLHUP) { 445 if (pfds[1].revents & POLLHUP) { 450 if (pfds[0].revents & POLLIN) { 455 if (pfds[1].revents & POLLIN) {
|
/linux-master/tools/testing/vsock/ |
H A D | vsock_perf.c | 213 if (fds.revents & POLLERR) { 218 if (fds.revents & POLLIN) { 238 if (fds.revents & (POLLHUP | POLLRDHUP)) 328 if (!(fds.revents & POLLERR)) {
|
H A D | vsock_test.c | 868 if (fds.revents) { 870 fds.revents); 884 if (fds.revents != poll_flags) { 886 fds.revents); 1377 if (fds.revents & POLLERR) { 1382 if (fds.revents & (POLLIN | POLLRDNORM)) {
|
/linux-master/tools/testing/selftests/net/ |
H A D | udpgso_bench_rx.c | 98 pfd.revents = 0; 120 if (pfd.revents != POLLIN) 122 pfd.revents, POLLIN);
|
/linux-master/samples/timers/ |
H A D | hpet_example.c | 182 pfd.revents = 0; 196 fprintf(stderr, "hpet_poll: revents = 0x%x\n", 197 pfd.revents);
|
/linux-master/samples/cgroup/ |
H A D | memcg_event_listener.c | 242 if (fds[0].revents & POLLERR) 245 if (fds[0].revents & POLLIN) {
|
/linux-master/tools/testing/selftests/mm/ |
H A D | uffd-common.c | 528 if (pollfd[1].revents) { 529 if (!(pollfd[1].revents & POLLIN)) 530 err("pollfd[1].revents %d", pollfd[1].revents); 535 if (!(pollfd[0].revents & POLLIN)) 536 err("pollfd[0].revents %d", pollfd[0].revents);
|
/linux-master/arch/arm/kernel/ |
H A D | sys_oabi-compat.c | 309 epoll_put_uevent(__poll_t revents, __u64 data, argument 315 if (__put_user(revents, &oevent->events) || 322 if (__put_user(revents, &uevent->events) ||
|
/linux-master/arch/um/os-Linux/ |
H A D | sigio.c | 70 if (p->revents == 0) 271 .revents = 0 }); 375 .revents = 0 });
|
/linux-master/samples/connector/ |
H A D | ucon.c | 192 pfd.revents = 0;
|
/linux-master/tools/include/nolibc/ |
H A D | types.h | 170 short int revents; member in struct:pollfd
|
/linux-master/tools/lib/api/ |
H A D | io.h | 68 if (n > 0 && !(pfds[0].revents & POLLIN)) {
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | xdp_hw_metadata.c | 418 fds[i].revents = 0; 423 fds[rxq].revents = 0; 443 if (fds[rxq].revents) 450 if (fds[i].revents == 0)
|
/linux-master/tools/perf/util/ |
H A D | evlist.c | 1982 entries[evlist->ctl_fd.pos].revents = 0; 2165 if (!evlist__ctlfd_initialized(evlist) || !entries[ctlfd_pos].revents) 2168 if (entries[ctlfd_pos].revents & POLLIN) { 2197 if (entries[ctlfd_pos].revents & (POLLHUP | POLLERR)) 2200 entries[ctlfd_pos].revents = 0; 2386 short revents; local 2392 revents = entries[eet->pollfd_pos].revents; 2393 entries[eet->pollfd_pos].revents = 0; 2395 if (revents [all...] |
/linux-master/tools/hv/ |
H A D | hv_vss_daemon.c | 282 pfd.revents = 0;
|