/kernel/linux/linux-5.10/tools/perf/tests/ |
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()
|
/kernel/linux/linux-5.10/tools/lib/api/fd/ |
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()
|
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/liteos_a/testsuites/unittest/libc/io/full/ |
D | IO_test_ppoll_003.cpp | 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()
|
D | IO_test_ppoll_002.cpp | 59 if (pfd.revents & POLLIN) { in pthread_01()
|
D | IO_test_ppoll_001.cpp | 62 if (pfd.revents & POLLIN) { in pthread_01()
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/mediactl/ |
D | request-func-poll.rst | 44 ``revents`` field of the respective struct :c:type:`pollfd` 45 is non-zero). Request file descriptor set the ``POLLPRI`` flag in ``revents`` 51 set the ``POLLERR`` flag in ``revents``. 57 structures which have non-zero ``revents`` fields, or zero if the call
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
D | func-poll.rst | 46 ``revents`` field of the respective ``struct pollfd`` structure 48 flags in the ``revents`` field, output devices the ``POLLOUT`` and 53 function succeeds, but sets the ``POLLERR`` flag in the ``revents`` 58 the ``revents`` field. For output devices this same situation will cause 60 ``POLLWRNORM`` flags in the ``revents`` field. 63 then ``POLLPRI`` will be set in the ``revents`` field and 94 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
D | pidfd_poll_test.c | 97 if (!(fds.revents & POLLIN)) in main() 100 fds.revents); in main()
|
/kernel/linux/linux-5.10/samples/uhid/ |
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/Documentation/userspace-api/media/cec/ |
D | cec-func-poll.rst | 44 ``revents`` field of the respective struct :c:type:`pollfd` 46 the ``revents`` field if there are messages in the receive queue. If the 59 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/kernel/linux/linux-5.10/samples/nitro_enclaves/ |
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-5.10/tools/testing/selftests/net/ |
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/liteos_m/kal/libc/newlib/porting/include/ |
D | poll.h | 53 short revents; member
|
/kernel/linux/linux-5.10/include/uapi/asm-generic/ |
D | poll.h | 39 short revents; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/asm-generic/ |
D | poll.h | 49 short revents; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-generic/ |
D | poll.h | 36 short revents; member
|
/kernel/liteos_m/kal/posix/src/ |
D | poll.c | 116 tmpFds->revents = (tmpFds->events | POLLERR | POLLHUP) & (PollEvent)ret; in QueryFds() 117 if (tmpFds->revents != 0) { in QueryFds()
|
/kernel/linux/linux-5.10/samples/timers/ |
D | hpet_example.c | 182 pfd.revents = 0; in hpet_poll() 197 pfd.revents); in hpet_poll()
|
/kernel/liteos_a/net/telnet/src/ |
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-5.10/tools/testing/selftests/kvm/ |
D | demand_paging_test.c | 154 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn() 159 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn() 166 if (!pollfd[0].revents & POLLIN) in uffd_handler_thread_fn()
|
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
D | sigio.c | 70 if (p->revents == 0) in write_sigio_thread() 252 .revents = 0 }); in setup_initial_poll() 356 .revents = 0 }); in sigio_broken()
|
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
D | net_socket_test_009.cpp | 142 if (fds[i].revents == 0) { in HandleReadfds() 145 LogPrintln("[%d]revents: %04hx", fds[i].fd, fds[i].revents); in HandleReadfds()
|
/kernel/liteos_a/fs/vfs/epoll/ |
D | fs_epoll.c | 342 if (pFd[counter].revents != 0) { in epoll_wait() 344 evs[i].events = pFd[counter].revents; in epoll_wait()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/ |
D | mptcp_connect.c | 370 if (fds.revents & POLLIN) { in copyfd_io_poll() 391 if (fds.revents & POLLOUT) { in copyfd_io_poll() 430 if (fds.revents & (POLLERR | POLLNVAL)) { in copyfd_io_poll() 432 "POLLERR/POLLNVAL(%x)\n", fds.revents); in copyfd_io_poll()
|