/Linux-v5.4/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].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()
|
/Linux-v5.4/tools/lib/api/fd/ |
D | array.c | 72 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()
|
D | array.h | 36 int fdarray__add(struct fdarray *fda, int fd, short revents); 38 int fdarray__filter(struct fdarray *fda, short revents,
|
/Linux-v5.4/Documentation/media/uapi/v4l/ |
D | func-poll.rst | 56 ``revents`` field of the respective :c:func:`struct pollfd` structure 58 flags in the ``revents`` field, output devices the ``POLLOUT`` and 63 function succeeds, but sets the ``POLLERR`` flag in the ``revents`` 68 the ``revents`` field. For output devices this same situation will cause 70 ``POLLWRNORM`` flags in the ``revents`` field. 73 then ``POLLPRI`` will be set in the ``revents`` field and 105 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/Linux-v5.4/tools/testing/selftests/pidfd/ |
D | pidfd_poll_test.c | 98 if (!(fds.revents & POLLIN)) in main() 101 fds.revents); in main()
|
/Linux-v5.4/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()
|
/Linux-v5.4/Documentation/media/uapi/mediactl/ |
D | request-func-poll.rst | 71 ``revents`` field of the respective struct :c:type:`pollfd` 72 is non-zero). Request file descriptor set the ``POLLPRI`` flag in ``revents`` 78 set the ``POLLERR`` flag in ``revents``. 85 structures which have non-zero ``revents`` fields, or zero if the call
|
/Linux-v5.4/Documentation/media/uapi/cec/ |
D | cec-func-poll.rst | 54 ``revents`` field of the respective struct :c:type:`pollfd` 56 the ``revents`` field if there are messages in the receive queue. If the 70 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/Linux-v5.4/samples/mic/mpssd/ |
D | mpssd.c | 480 pollfd.revents = 0; in wait_for_card_driver() 488 if (pollfd.revents) { in wait_for_card_driver() 498 mic->name, __func__, pollfd.revents); in wait_for_card_driver() 573 net_poll[NET_FD_VIRTIO_NET].revents = 0; in virtio_net() 574 net_poll[NET_FD_TUN].revents = 0; in virtio_net() 597 if (net_poll[NET_FD_TUN].revents & POLLIN) { in virtio_net() 655 if (net_poll[NET_FD_VIRTIO_NET].revents & POLLIN) { in virtio_net() 718 if (net_poll[NET_FD_VIRTIO_NET].revents & POLLERR) in virtio_net() 793 console_poll[MONITOR_FD].revents = 0; in virtio_console() 794 console_poll[VIRTIO_CONSOLE_FD].revents = 0; in virtio_console() [all …]
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | udpgso_bench_rx.c | 98 pfd.revents = 0; in do_poll() 117 if (pfd.revents != POLLIN) in do_poll() 119 pfd.revents, POLLIN); in do_poll()
|
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()
|
D | msg_zerocopy.c | 148 pfd.revents = 0; in do_poll() 155 return ret && (pfd.revents & events); in do_poll()
|
/Linux-v5.4/include/uapi/asm-generic/ |
D | poll.h | 39 short revents; member
|
/Linux-v5.4/samples/timers/ |
D | hpet_example.c | 182 pfd.revents = 0; in hpet_poll() 197 pfd.revents); in hpet_poll()
|
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/misc/mic/cosm/ |
D | cosm_scif_server.c | 261 if (pollepd.revents & EPOLLIN) in cosm_scif_work() 265 if (pollepd.revents & EPOLLHUP) { in cosm_scif_work()
|
/Linux-v5.4/Documentation/accounting/ |
D | psi.rst | 157 if (fds.revents & POLLERR) { 161 if (fds.revents & POLLPRI) { 164 printf("unknown event received: 0x%x\n", fds.revents);
|
/Linux-v5.4/fs/ |
D | eventpoll.c | 1500 __poll_t revents; in ep_insert() local 1541 revents = ep_item_poll(epi, &epq.pt, 1); in ep_insert() 1575 if (revents && !ep_is_linked(epi)) { in ep_insert() 1705 __poll_t revents; in ep_send_events_proc() local 1749 revents = ep_item_poll(epi, &pt, 1); in ep_send_events_proc() 1750 if (!revents) in ep_send_events_proc() 1753 if (__put_user(revents, &uevent->events) || in ep_send_events_proc()
|
/Linux-v5.4/include/linux/ |
D | scif.h | 127 __poll_t revents; member
|
/Linux-v5.4/samples/connector/ |
D | ucon.c | 192 pfd.revents = 0; in main()
|
/Linux-v5.4/drivers/misc/mic/cosm_client/ |
D | cosm_scif_client.c | 166 if (pollepd.revents & EPOLLIN) in cosm_scif_client()
|
/Linux-v5.4/tools/hv/ |
D | hv_vss_daemon.c | 258 pfd.revents = 0; in main()
|
/Linux-v5.4/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
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()
|
/Linux-v5.4/tools/testing/selftests/vm/ |
D | userfaultfd.c | 510 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread() 516 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 518 pollfd[0].revents), exit(1); in uffd_poll_thread()
|