Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 46) sorted by relevance

12

/Linux-v5.4/tools/perf/tests/
Dfdarray.c7 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/
Darray.c72 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()
Darray.h36 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/
Dfunc-poll.rst56 ``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/
Dpidfd_poll_test.c98 if (!(fds.revents & POLLIN)) in main()
101 fds.revents); in main()
/Linux-v5.4/samples/uhid/
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()
/Linux-v5.4/Documentation/media/uapi/mediactl/
Drequest-func-poll.rst71 ``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/
Dcec-func-poll.rst54 ``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/
Dmpssd.c480 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/
Dudpgso_bench_rx.c98 pfd.revents = 0; in do_poll()
117 if (pfd.revents != POLLIN) in do_poll()
119 pfd.revents, POLLIN); in do_poll()
Dpsock_tpacket.c234 pfd.revents = 0; in walk_v1_v2_rx()
413 pfd.revents = 0; in walk_tx()
595 pfd.revents = 0; in walk_v3_rx()
Dmsg_zerocopy.c148 pfd.revents = 0; in do_poll()
155 return ret && (pfd.revents & events); in do_poll()
/Linux-v5.4/include/uapi/asm-generic/
Dpoll.h39 short revents; member
/Linux-v5.4/samples/timers/
Dhpet_example.c182 pfd.revents = 0; in hpet_poll()
197 pfd.revents); in hpet_poll()
/Linux-v5.4/arch/um/os-Linux/
Dsigio.c70 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/
Dcosm_scif_server.c261 if (pollepd.revents & EPOLLIN) in cosm_scif_work()
265 if (pollepd.revents & EPOLLHUP) { in cosm_scif_work()
/Linux-v5.4/Documentation/accounting/
Dpsi.rst157 if (fds.revents & POLLERR) {
161 if (fds.revents & POLLPRI) {
164 printf("unknown event received: 0x%x\n", fds.revents);
/Linux-v5.4/fs/
Deventpoll.c1500 __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/
Dscif.h127 __poll_t revents; member
/Linux-v5.4/samples/connector/
Ducon.c192 pfd.revents = 0; in main()
/Linux-v5.4/drivers/misc/mic/cosm_client/
Dcosm_scif_client.c166 if (pollepd.revents & EPOLLIN) in cosm_scif_client()
/Linux-v5.4/tools/hv/
Dhv_vss_daemon.c258 pfd.revents = 0; in main()
/Linux-v5.4/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_flow_dissector.c486 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/
Duserfaultfd.c510 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()

12