Home
last modified time | relevance | path

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

12

/Linux-v4.19/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-v4.19/tools/lib/api/fd/
Darray.c73 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()
Darray.h36 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/
Dfunc-poll.rst49 ``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/
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-v4.19/Documentation/media/uapi/cec/
Dcec-func-poll.rst47 ``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/
Dudpgso_bench_rx.c61 pfd.revents = 0; in do_poll()
70 if (pfd.revents != POLLIN) in do_poll()
72 pfd.revents, POLLIN); in do_poll()
Dpsock_tpacket.c248 pfd.revents = 0; in walk_v1_v2_rx()
427 pfd.revents = 0; in walk_tx()
609 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-v4.19/samples/mic/mpssd/
Dmpssd.c491 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/
Dpoll.h39 short revents; member
/Linux-v4.19/samples/timers/
Dhpet_example.c182 pfd.revents = 0; in hpet_poll()
197 pfd.revents); in hpet_poll()
/Linux-v4.19/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-v4.19/drivers/misc/mic/cosm/
Dcosm_scif_server.c273 if (pollepd.revents & EPOLLIN) in cosm_scif_work()
277 if (pollepd.revents & EPOLLHUP) { in cosm_scif_work()
/Linux-v4.19/fs/
Deventpoll.c1423 __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/
Dscif.h127 __poll_t revents; member
/Linux-v4.19/samples/connector/
Ducon.c206 pfd.revents = 0; in main()
/Linux-v4.19/tools/testing/selftests/bpf/
Dtrace_helpers.c193 if (!pfds[i].revents) in perf_event_poller_multi()
/Linux-v4.19/drivers/misc/mic/cosm_client/
Dcosm_scif_client.c178 if (pollepd.revents & EPOLLIN) in cosm_scif_client()
/Linux-v4.19/tools/hv/
Dhv_vss_daemon.c267 pfd.revents = 0; in main()
/Linux-v4.19/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
/Linux-v4.19/tools/testing/selftests/vm/
Duserfaultfd.c464 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/
Dsocket.c716 __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/
Dvirtio_test.c149 if (dev->fds[i].revents & POLLIN) { in wait_for_interrupt()
/Linux-v4.19/tools/perf/
Dbuiltin-ftrace.c366 if (pollfd.revents & POLLIN) { in __cmd_ftrace()

12