Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/tools/perf/tests/
A Dfdarray.c7 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-6.3-rc2/tools/lib/api/fd/
A Darray.c76 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()
108 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument
121 if (fda->entries[fd].revents & revents) { in fdarray__filter()
125 fda->entries[fd].revents = fda->entries[fd].events = 0; in fdarray__filter()
A Darray.h45 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags);
48 int fdarray__filter(struct fdarray *fda, short revents,
/linux-6.3-rc2/include/linux/
A Deventpoll.h74 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-6.3-rc2/Documentation/userspace-api/media/v4l/
A Dfunc-poll.rst46 ``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-6.3-rc2/Documentation/userspace-api/media/mediactl/
A Drequest-func-poll.rst44 ``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-6.3-rc2/Documentation/translations/zh_CN/accounting/
A Dpsi.rst133 if (fds.revents & POLLERR) {
137 if (fds.revents & POLLPRI) {
140 printf("unknown event received: 0x%x\n", fds.revents);
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/
A Duserfaultfd_util.c64 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn()
69 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn()
76 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
/linux-6.3-rc2/samples/uhid/
A 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-6.3-rc2/tools/testing/selftests/pidfd/
A Dpidfd_poll_test.c97 if (!(fds.revents & POLLIN)) in main()
100 fds.revents); in main()
/linux-6.3-rc2/Documentation/userspace-api/media/cec/
A Dcec-func-poll.rst44 ``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-6.3-rc2/samples/nitro_enclaves/
A Dne_ioctl_sample.c228 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-6.3-rc2/tools/testing/vsock/
A Dvsock_perf.c209 if (fds.revents & POLLERR) { in run_receiver()
214 if (fds.revents & POLLIN) { in run_receiver()
234 if (fds.revents & (POLLHUP | POLLRDHUP)) in run_receiver()
A Dvsock_test.c826 if (fds.revents) { in test_stream_poll_rcvlowat_client()
828 fds.revents); in test_stream_poll_rcvlowat_client()
842 if (fds.revents != poll_flags) { in test_stream_poll_rcvlowat_client()
844 fds.revents); in test_stream_poll_rcvlowat_client()
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dxdp_hw_metadata.c205 fds[i].revents = 0; in verify_metadata()
210 fds[rxq].revents = 0; in verify_metadata()
221 if (fds[rxq].revents) in verify_metadata()
225 if (fds[i].revents == 0) in verify_metadata()
/linux-6.3-rc2/tools/testing/selftests/net/
A Dudpgso_bench_rx.c98 pfd.revents = 0; in do_poll()
120 if (pfd.revents != POLLIN) in do_poll()
122 pfd.revents, POLLIN); in do_poll()
/linux-6.3-rc2/include/uapi/asm-generic/
A Dpoll.h39 short revents; member
/linux-6.3-rc2/samples/timers/
A Dhpet_example.c182 pfd.revents = 0; in hpet_poll()
197 pfd.revents); in hpet_poll()
/linux-6.3-rc2/arch/um/os-Linux/
A Dsigio.c71 if (p->revents == 0) in write_sigio_thread()
270 .revents = 0 }); in setup_initial_poll()
374 .revents = 0 }); in sigio_broken()
/linux-6.3-rc2/tools/testing/selftests/cgroup/
A Dwait_inotify.c73 if ((ret > 0) && (fds.revents & POLLIN)) in main()
/linux-6.3-rc2/arch/arm/kernel/
A Dsys_oabi-compat.c307 epoll_put_uevent(__poll_t revents, __u64 data, in epoll_put_uevent() argument
313 if (__put_user(revents, &oevent->events) || in epoll_put_uevent()
320 if (__put_user(revents, &uevent->events) || in epoll_put_uevent()
/linux-6.3-rc2/tools/perf/util/
A Devlist.c1949 entries[evlist->ctl_fd.pos].revents = 0; in evlist__finalize_ctlfd()
2132 if (!evlist__ctlfd_initialized(evlist) || !entries[ctlfd_pos].revents) in evlist__ctlfd_process()
2135 if (entries[ctlfd_pos].revents & POLLIN) { in evlist__ctlfd_process()
2164 if (entries[ctlfd_pos].revents & (POLLHUP | POLLERR)) in evlist__ctlfd_process()
2167 entries[ctlfd_pos].revents = 0; in evlist__ctlfd_process()
2353 short revents; in event_enable_timer__process() local
2359 revents = entries[eet->pollfd_pos].revents; in event_enable_timer__process()
2360 entries[eet->pollfd_pos].revents = 0; in event_enable_timer__process()
2362 if (revents & POLLIN) { in event_enable_timer__process()
/linux-6.3-rc2/fs/
A Deventpoll.c1450 __poll_t revents; in ep_insert() local
1524 revents = ep_item_poll(epi, &epq.pt, 1); in ep_insert()
1543 if (revents && !ep_is_linked(epi)) { in ep_insert()
1666 __poll_t revents; in ep_send_events() local
1694 revents = ep_item_poll(epi, &pt, 1); in ep_send_events()
1695 if (!revents) in ep_send_events()
1698 events = epoll_put_uevent(revents, epi->event.data, events); in ep_send_events()
/linux-6.3-rc2/Documentation/accounting/
A Dpsi.rst159 if (fds.revents & POLLERR) {
163 if (fds.revents & POLLPRI) {
166 printf("unknown event received: 0x%x\n", fds.revents);
/linux-6.3-rc2/tools/testing/selftests/alsa/
A Dmixer-test.c179 unsigned short revents; in wait_for_event() local
200 1, &revents); in wait_for_event()
206 if (revents & POLLERR) { in wait_for_event()
212 if (!(revents & POLLIN)) { in wait_for_event()

Completed in 38 milliseconds

123