/Linux-v4.19/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-v4.19/tools/lib/api/fd/ |
D | array.c | 73 int fdarray__add(struct fdarray *fda, int fd, short revents) in fdarray__add() argument 82 fda->entries[fda->nr].events = revents; in fdarray__add() 87 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument 97 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-v4.19/Documentation/media/uapi/v4l/ |
D | func-poll.rst | 49 ``revents`` field of the respective :c:func:`struct pollfd` structure 51 flags in the ``revents`` field, output devices the ``POLLOUT`` and 56 function succeeds, but sets the ``POLLERR`` flag in the ``revents`` 61 the ``revents`` field. For output devices this same situation will cause 63 ``POLLWRNORM`` flags in the ``revents`` field. 66 then ``POLLPRI`` will be set in the ``revents`` field and 98 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/Linux-v4.19/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-v4.19/Documentation/media/uapi/cec/ |
D | cec-func-poll.rst | 47 ``revents`` field of the respective struct :c:type:`pollfd` 49 the ``revents`` field if there are messages in the receive queue. If the 63 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | udpgso_bench_rx.c | 61 pfd.revents = 0; in do_poll() 70 if (pfd.revents != POLLIN) in do_poll() 72 pfd.revents, POLLIN); in do_poll()
|
D | psock_tpacket.c | 248 pfd.revents = 0; in walk_v1_v2_rx() 427 pfd.revents = 0; in walk_tx() 609 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-v4.19/samples/mic/mpssd/ |
D | mpssd.c | 491 pollfd.revents = 0; in wait_for_card_driver() 499 if (pollfd.revents) { in wait_for_card_driver() 509 mic->name, __func__, pollfd.revents); in wait_for_card_driver() 584 net_poll[NET_FD_VIRTIO_NET].revents = 0; in virtio_net() 585 net_poll[NET_FD_TUN].revents = 0; in virtio_net() 608 if (net_poll[NET_FD_TUN].revents & POLLIN) { in virtio_net() 666 if (net_poll[NET_FD_VIRTIO_NET].revents & POLLIN) { in virtio_net() 729 if (net_poll[NET_FD_VIRTIO_NET].revents & POLLERR) in virtio_net() 804 console_poll[MONITOR_FD].revents = 0; in virtio_console() 805 console_poll[VIRTIO_CONSOLE_FD].revents = 0; in virtio_console() [all …]
|
/Linux-v4.19/include/uapi/asm-generic/ |
D | poll.h | 39 short revents; member
|
/Linux-v4.19/samples/timers/ |
D | hpet_example.c | 182 pfd.revents = 0; in hpet_poll() 197 pfd.revents); in hpet_poll()
|
/Linux-v4.19/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-v4.19/drivers/misc/mic/cosm/ |
D | cosm_scif_server.c | 273 if (pollepd.revents & EPOLLIN) in cosm_scif_work() 277 if (pollepd.revents & EPOLLHUP) { in cosm_scif_work()
|
/Linux-v4.19/fs/ |
D | eventpoll.c | 1423 __poll_t revents; in ep_insert() local 1464 revents = ep_item_poll(epi, &epq.pt, 1); in ep_insert() 1498 if (revents && !ep_is_linked(epi)) { in ep_insert() 1628 __poll_t revents; in ep_send_events_proc() local 1663 revents = ep_item_poll(epi, &pt, 1); in ep_send_events_proc() 1671 if (revents) { in ep_send_events_proc() 1672 if (__put_user(revents, &uevent->events) || in ep_send_events_proc()
|
/Linux-v4.19/include/linux/ |
D | scif.h | 127 __poll_t revents; member
|
/Linux-v4.19/samples/connector/ |
D | ucon.c | 206 pfd.revents = 0; in main()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | trace_helpers.c | 193 if (!pfds[i].revents) in perf_event_poller_multi()
|
/Linux-v4.19/drivers/misc/mic/cosm_client/ |
D | cosm_scif_client.c | 178 if (pollepd.revents & EPOLLIN) in cosm_scif_client()
|
/Linux-v4.19/tools/hv/ |
D | hv_vss_daemon.c | 267 pfd.revents = 0; in main()
|
/Linux-v4.19/tools/usb/ffs-aio-example/simple/device_app/ |
D | aio_simple.c | 175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
|
/Linux-v4.19/tools/testing/selftests/vm/ |
D | userfaultfd.c | 464 if (pollfd[1].revents & POLLIN) { in uffd_poll_thread() 470 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 472 pollfd[0].revents), exit(1); in uffd_poll_thread()
|
/Linux-v4.19/net/tipc/ |
D | socket.c | 716 __poll_t revents = 0; in tipc_poll() local 721 revents |= EPOLLRDHUP | EPOLLIN | EPOLLRDNORM; in tipc_poll() 723 revents |= EPOLLHUP; in tipc_poll() 729 revents |= EPOLLOUT; in tipc_poll() 733 revents |= EPOLLIN | EPOLLRDNORM; in tipc_poll() 737 revents |= EPOLLOUT; in tipc_poll() 742 revents |= EPOLLIN | EPOLLRDNORM; in tipc_poll() 745 revents = EPOLLIN | EPOLLRDNORM | EPOLLHUP; in tipc_poll() 748 return revents; in tipc_poll()
|
/Linux-v4.19/tools/virtio/ |
D | virtio_test.c | 149 if (dev->fds[i].revents & POLLIN) { in wait_for_interrupt()
|
/Linux-v4.19/tools/perf/ |
D | builtin-ftrace.c | 366 if (pollfd.revents & POLLIN) { in __cmd_ftrace()
|