Home
last modified time | relevance | path

Searched refs:revents (Results 1 - 25 of 104) sorted by relevance

12345

/kernel/linux/linux-5.10/tools/perf/tests/
H A Dfdarray.c7 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 Dfdarray.c7 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 Darray.c76 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 Darray.h44 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 Darray.c76 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 Darray.h45 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 Deventpoll.h74 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 DIO_test_ppoll_003.cpp69 /* 判断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 Duserfaultfd_util.c64 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 Dpidfd_poll_test.c97 if (!(fds.revents & POLLIN)) in main()
100 fds.revents); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c97 if (!(fds.revents & POLLIN)) in main()
100 fds.revents); in main()
/kernel/linux/linux-5.10/samples/uhid/
H A Duhid-example.c441 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 Duhid-example.c441 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 Dne_ioctl_sample.c229 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 Duffd-common.c517 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 Dne_ioctl_sample.c228 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 Dpoll.c116 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 Dpoll.h53 short revents; member
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A 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()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A 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()
/kernel/linux/linux-6.6/tools/testing/vsock/
H A Dvsock_perf.c209 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 Dtelnet_loop.c358 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 Dxdp_hw_metadata.c244 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 Dpoll.h39 short revents; member
/kernel/linux/linux-6.6/include/uapi/asm-generic/
H A Dpoll.h39 short revents; member

Completed in 12 milliseconds

12345