Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 22 of 22) sorted by relevance

/tools/lib/api/fd/
Darray.c72 int fdarray__add(struct fdarray *fda, int fd, short revents) in fdarray__add() argument
81 fda->entries[fda->nr].events = revents; in fdarray__add()
86 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument
96 if (fda->entries[fd].revents & revents) { in fdarray__filter()
Darray.h36 int fdarray__add(struct fdarray *fda, int fd, short revents);
38 int fdarray__filter(struct fdarray *fda, short revents,
/tools/perf/tests/
Dfdarray.c7 static void fdarray__init_revents(struct fdarray *fda, short revents) in fdarray__init_revents() argument
15 fda->entries[fd].revents = revents; in fdarray__init_revents()
57 fda->entries[2].revents = POLLIN; in test__fdarray__filter()
76 fda->entries[0].revents = POLLIN; in test__fdarray__filter()
78 fda->entries[3].revents = POLLIN; in test__fdarray__filter()
/tools/testing/selftests/pidfd/
Dpidfd_poll_test.c97 if (!(fds.revents & POLLIN)) in main()
100 fds.revents); in main()
/tools/testing/selftests/net/
Dudpgso_bench_rx.c98 pfd.revents = 0; in do_poll()
120 if (pfd.revents != POLLIN) in do_poll()
122 pfd.revents, POLLIN); in do_poll()
Dpsock_tpacket.c234 pfd.revents = 0; in walk_v1_v2_rx()
413 pfd.revents = 0; in walk_tx()
595 pfd.revents = 0; in walk_v3_rx()
Dmsg_zerocopy.c147 pfd.revents = 0; in do_poll()
154 return ret && (pfd.revents & events); in do_poll()
Dtls.c774 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
792 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
809 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
817 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
/tools/hv/
Dhv_vss_daemon.c258 pfd.revents = 0; in main()
Dhv_kvp_daemon.c1442 pfd.revents = 0; in main()
/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
/tools/testing/selftests/filesystems/incfs/
Dutils.c225 if (!(pollfd.revents | POLLIN)) in wait_for_pending_reads()
/tools/testing/selftests/bpf/
Dtest_flow_dissector.c486 if (ret && !(pfd.revents & POLLIN)) in do_poll()
487 error(1, errno, "poll: unexpected event 0x%x\n", pfd.revents); in do_poll()
/tools/testing/selftests/vm/
Duserfaultfd.c513 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread()
519 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
521 pollfd[0].revents), exit(1); in uffd_poll_thread()
/tools/virtio/
Dvirtio_test.c149 if (dev->fds[i].revents & POLLIN) { in wait_for_interrupt()
/tools/perf/
Dbuiltin-ftrace.c374 if (pollfd.revents & POLLIN) { in __cmd_ftrace()
Dbuiltin-kvm.c996 if (fda->entries[nr_stdin].revents & POLLIN) in kvm_events_live_report()
/tools/firewire/
Dnosy-dump.c980 if (pollfds[1].revents) { in main()
990 if (pollfds[0].revents) in main()
/tools/usb/usbip/src/
Dusbipd.c568 if (fds[i].revents & POLLIN) { in do_standalone_mode()
/tools/testing/selftests/cgroup/
Dtest_freezer.c103 if (ret > 0 && fds.revents & POLLIN) { in cg_wait_for()
/tools/include/nolibc/
Dnolibc.h152 short int revents; member
/tools/testing/selftests/seccomp/
Dseccomp_bpf.c3148 EXPECT_EQ(pollfd.revents, POLLIN); in TEST()
3167 EXPECT_EQ(pollfd.revents, POLLOUT); in TEST()