/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | fdarray.c | 7 static void fdarray__init_revents(struct fdarray *fda, short revents) in fdarray__init_revents() argument 15 fda->entries[fd].events = revents; in fdarray__init_revents() 16 fda->entries[fd].revents = revents; in fdarray__init_revents() 58 fda->entries[2].revents = POLLIN; in test__fdarray__filter() 70 fda->entries[0].revents = POLLIN; in test__fdarray__filter() 71 fda->entries[3].revents = POLLIN; in test__fdarray__filter() 109 pr_debug("\n%d: fda->entries[%d].revents(%d) != %d!", \ in test__fdarray__add()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | fdarray.c | 7 static void fdarray__init_revents(struct fdarray *fda, short revents) in fdarray__init_revents() argument 15 fda->entries[fd].events = revents; in fdarray__init_revents() 16 fda->entries[fd].revents = revents; in fdarray__init_revents() 58 fda->entries[2].revents = POLLIN; in test__fdarray__filter() 70 fda->entries[0].revents = POLLIN; in test__fdarray__filter() 71 fda->entries[3].revents = POLLIN; in test__fdarray__filter() 109 pr_debug("\n%d: fda->entries[%d].revents(%d) != %d!", \ in test__fdarray__add() 162 DEFINE_SUITE("Filter fds with revents mask in a fdarray", fdarray__filter);
|
/kernel/linux/linux-5.10/tools/lib/api/fd/ |
H A D | array.c | 76 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags) in fdarray__add() argument 85 fda->entries[fda->nr].events = revents; in fdarray__add() 91 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument 104 if (fda->entries[fd].revents & revents) { in fdarray__filter() 108 fda->entries[fd].revents = fda->entries[fd].events = 0; in fdarray__filter()
|
H A D | array.h | 44 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags); 46 int fdarray__filter(struct fdarray *fda, short revents,
|
/kernel/linux/linux-6.6/tools/lib/api/fd/ |
H A D | array.c | 76 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags) in fdarray__add() argument 85 fda->entries[fda->nr].events = revents; in fdarray__add() 108 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument 121 if (fda->entries[fd].revents & revents) { in fdarray__filter() 125 fda->entries[fd].revents = fda->entries[fd].events = 0; in fdarray__filter()
|
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,
|
/kernel/linux/linux-6.6/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, in epoll_put_uevent() argument 81 if (__put_user(revents, &uevent->events) || in epoll_put_uevent()
|
/kernel/liteos_a/testsuites/unittest/libc/io/full/ |
H A D | IO_test_ppoll_003.cpp | 69 /* 判断revents */
in pthread_01() 70 if (pfd.revents & POLLIN) {
in pthread_01() 80 ICUNIT_ASSERT_NOT_EQUAL_NULL(pfd.revents & POLLIN, 0, pfd.revents & POLLIN);
in pthread_01() 108 pfd.revents = 0x0;
in testcase()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 64 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn() 65 pr_info("uffd revents has POLLERR"); in uffd_handler_thread_fn() 69 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn() 76 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
H A D | pidfd_poll_test.c | 97 if (!(fds.revents & POLLIN)) in main() 100 fds.revents); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/ |
H A D | pidfd_poll_test.c | 97 if (!(fds.revents & POLLIN)) in main() 100 fds.revents); in main()
|
/kernel/linux/linux-5.10/samples/uhid/ |
H A D | uhid-example.c | 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[1].revents & POLLIN) { in main()
|
/kernel/linux/linux-6.6/samples/uhid/ |
H A D | uhid-example.c | 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[1].revents & POLLIN) { in main()
|
/kernel/linux/linux-5.10/samples/nitro_enclaves/ |
H A D | ne_ioctl_sample.c | 229 printf("Poll received value 0x%x\n", fds[0].revents); in ne_poll_enclave_fd() 231 if (fds[0].revents & POLLHUP) { in ne_poll_enclave_fd() 237 if (fds[0].revents & POLLNVAL) { in ne_poll_enclave_fd() 715 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted() 716 printf("Poll received value %d\n", fds[0].revents); in ne_start_enclave_check_booted()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | uffd-common.c | 517 if (pollfd[1].revents) { in uffd_poll_thread() 518 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread() 519 err("pollfd[1].revents %d", pollfd[1].revents); in uffd_poll_thread() 524 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 525 err("pollfd[0].revents %d", pollfd[0].revents); in uffd_poll_thread()
|
/kernel/linux/linux-6.6/samples/nitro_enclaves/ |
H A D | ne_ioctl_sample.c | 228 printf("Poll received value 0x%x\n", fds[0].revents); in ne_poll_enclave_fd() 230 if (fds[0].revents & POLLHUP) { in ne_poll_enclave_fd() 236 if (fds[0].revents & POLLNVAL) { in ne_poll_enclave_fd() 714 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted() 715 printf("Poll received value %d\n", fds[0].revents); in ne_start_enclave_check_booted()
|
/kernel/liteos_m/kal/posix/src/ |
H A D | poll.c | 116 tmpFds->revents = (tmpFds->events | POLLERR | POLLHUP) & (PollEvent)ret; in QueryFds() 117 if (tmpFds->revents != 0) { in QueryFds()
|
/kernel/liteos_m/kal/libc/newlib/porting/include/ |
H A D | poll.h | 53 short revents; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | udpgso_bench_rx.c | 98 pfd.revents = 0; in do_poll() 120 if (pfd.revents != POLLIN) in do_poll() 122 pfd.revents, POLLIN); in do_poll()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | udpgso_bench_rx.c | 98 pfd.revents = 0; in do_poll() 120 if (pfd.revents != POLLIN) in do_poll() 122 pfd.revents, POLLIN); in do_poll()
|
/kernel/linux/linux-6.6/tools/testing/vsock/ |
H A D | vsock_perf.c | 209 if (fds.revents & POLLERR) { in run_receiver() 214 if (fds.revents & POLLIN) { in run_receiver() 234 if (fds.revents & (POLLHUP | POLLRDHUP)) in run_receiver()
|
/kernel/liteos_a/net/telnet/src/ |
H A D | telnet_loop.c | 358 pollFd.revents = 0; in TelnetClientLoop() 368 if ((UINT16)pollFd.revents & (POLLERR | POLLHUP | POLLRDHUP)) { in TelnetClientLoop() 372 if ((UINT16)pollFd.revents & POLLIN) { in TelnetClientLoop()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | xdp_hw_metadata.c | 244 fds[i].revents = 0; in verify_metadata() 249 fds[rxq].revents = 0; in verify_metadata() 262 if (fds[rxq].revents) in verify_metadata() 266 if (fds[i].revents == 0) in verify_metadata()
|
/kernel/linux/linux-5.10/include/uapi/asm-generic/ |
H A D | poll.h | 39 short revents; member
|
/kernel/linux/linux-6.6/include/uapi/asm-generic/ |
H A D | poll.h | 39 short revents; member
|