/linux/tools/perf/tests/ |
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()
|
/linux/tools/lib/api/fd/ |
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()
|
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,
|
/linux/include/linux/ |
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()
|
/linux/Documentation/userspace-api/media/v4l/ |
A 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
|
/linux/Documentation/userspace-api/media/mediactl/ |
A 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
|
/linux/Documentation/translations/zh_CN/accounting/ |
A D | psi.rst | 133 if (fds.revents & POLLERR) { 137 if (fds.revents & POLLPRI) { 140 printf("unknown event received: 0x%x\n", fds.revents);
|
/linux/samples/uhid/ |
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()
|
/linux/samples/nitro_enclaves/ |
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()
|
/linux/Documentation/userspace-api/media/cec/ |
A 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
|
/linux/tools/testing/selftests/pidfd/ |
A D | pidfd_poll_test.c | 97 if (!(fds.revents & POLLIN)) in main() 100 fds.revents); in main()
|
/linux/tools/testing/selftests/net/ |
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()
|
A D | psock_tpacket.c | 234 pfd.revents = 0; in walk_v1_v2_rx() 413 pfd.revents = 0; in walk_tx() 595 pfd.revents = 0; in walk_v3_rx()
|
/linux/arch/um/os-Linux/ |
A D | sigio.c | 70 if (p->revents == 0) in write_sigio_thread() 271 .revents = 0 }); in setup_initial_poll() 375 .revents = 0 }); in sigio_broken()
|
/linux/tools/testing/selftests/kvm/ |
A D | demand_paging_test.c | 167 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn() 172 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn() 179 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
|
/linux/samples/timers/ |
A D | hpet_example.c | 182 pfd.revents = 0; in hpet_poll() 197 pfd.revents); in hpet_poll()
|
/linux/include/uapi/asm-generic/ |
A D | poll.h | 39 short revents; member
|
/linux/arch/arm/kernel/ |
A D | sys_oabi-compat.c | 306 epoll_put_uevent(__poll_t revents, __u64 data, in epoll_put_uevent() argument 312 if (__put_user(revents, &oevent->events) || in epoll_put_uevent() 319 if (__put_user(revents, &uevent->events) || in epoll_put_uevent()
|
/linux/Documentation/accounting/ |
A D | psi.rst | 159 if (fds.revents & POLLERR) { 163 if (fds.revents & POLLPRI) { 166 printf("unknown event received: 0x%x\n", fds.revents);
|
/linux/fs/ |
A D | eventpoll.c | 1441 __poll_t revents; in ep_insert() local 1515 revents = ep_item_poll(epi, &epq.pt, 1); in ep_insert() 1534 if (revents && !ep_is_linked(epi)) { in ep_insert() 1657 __poll_t revents; in ep_send_events() local 1685 revents = ep_item_poll(epi, &pt, 1); in ep_send_events() 1686 if (!revents) in ep_send_events() 1689 events = epoll_put_uevent(revents, epi->event.data, events); in ep_send_events()
|
/linux/tools/testing/selftests/net/mptcp/ |
A D | mptcp_connect.c | 485 if (fds.revents & POLLIN) { in copyfd_io_poll() 508 if (fds.revents & POLLOUT) { in copyfd_io_poll() 547 if (fds.revents & (POLLERR | POLLNVAL)) { in copyfd_io_poll() 549 "POLLERR/POLLNVAL(%x)\n", fds.revents); in copyfd_io_poll()
|
/linux/samples/connector/ |
A D | ucon.c | 192 pfd.revents = 0; in main()
|
/linux/tools/perf/ |
A D | builtin-daemon.c | 562 if (!(pollfd.revents & POLLIN)) { in daemon_session__control() 1329 if (fda.entries[sock_pos].revents & POLLIN) in __cmd_start() 1331 if (fda.entries[file_pos].revents & POLLIN) in __cmd_start() 1333 if (fda.entries[signal_pos].revents & POLLIN) in __cmd_start()
|
/linux/tools/perf/util/ |
A D | evlist.c | 1895 entries[evlist->ctl_fd.pos].revents = 0; in evlist__finalize_ctlfd() 2078 if (!evlist__ctlfd_initialized(evlist) || !entries[ctlfd_pos].revents) in evlist__ctlfd_process() 2081 if (entries[ctlfd_pos].revents & POLLIN) { in evlist__ctlfd_process() 2110 if (entries[ctlfd_pos].revents & (POLLHUP | POLLERR)) in evlist__ctlfd_process() 2113 entries[ctlfd_pos].revents = 0; in evlist__ctlfd_process()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_flow_dissector.c | 486 if (ret && !(pfd.revents & POLLIN)) in do_poll() 487 error(1, errno, "poll: unexpected event 0x%x\n", pfd.revents); in do_poll()
|