| /linux/tools/perf/tests/ |
| H A D | fdarray.c | 7 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/tools/lib/api/fd/ |
| H A D | array.c | 77 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags) in fdarray__add() 86 fda->entries[fda->nr].events = revents; in fdarray__add() 109 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() 125 if (fda->entries[fd].revents & revents) { in fdarray__filter() 135 fda->entries[fd].revents = fda->entries[fd].events = 0; 76 fdarray__add(struct fdarray * fda,int fd,short revents,enum fdarray_flags flags) fdarray__add() argument 108 fdarray__filter(struct fdarray * fda,short revents,void (* entry_destructor)(struct fdarray * fda,int fd,void * arg),void * arg) fdarray__filter() argument
|
| H A D | array.h | 45 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags); 48 int fdarray__filter(struct fdarray *fda, short revents,
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_info_test.c | 211 ASSERT_TRUE(!!(fds.revents & POLLIN)); in TEST_F() 212 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() 287 if (fds.revents & POLLIN) in TEST_F() 289 if (fds.revents & POLLHUP) in TEST_F() 354 ASSERT_TRUE(!!(fds.revents & POLLIN)); in TEST_F() 356 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() 467 if (fds.revents & POLLIN) in TEST_F() 469 if (fds.revents & POLLHUP) in TEST_F() 494 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() 531 ASSERT_TRUE(!!(fds.revents in TEST_F() [all...] |
| H A D | pidfd_poll_test.c | 97 if (!(fds.revents & POLLIN)) in main() 100 fds.revents); in main()
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | func-poll.rst | 46 ``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/Documentation/userspace-api/media/mediactl/ |
| H A D | request-func-poll.rst | 44 ``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/Documentation/translations/zh_CN/accounting/ |
| H A D | psi.rst | 133 if (fds.revents & POLLERR) { 137 if (fds.revents & POLLPRI) { 140 printf("unknown event received: 0x%x\n", fds.revents);
|
| /linux/samples/uhid/ |
| H A 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/Documentation/userspace-api/media/cec/ |
| H A D | cec-func-poll.rst | 44 ``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/samples/nitro_enclaves/ |
| H A D | ne_ioctl_sample.c | 228 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/tools/testing/vsock/ |
| H A D | vsock_perf.c | 213 if (fds.revents & POLLERR) { in run_receiver() 218 if (fds.revents & POLLIN) { in run_receiver() 238 if (fds.revents & (POLLHUP | POLLRDHUP)) in run_receiver() 338 if (!(fds.revents & POLLERR)) { in run_sender()
|
| H A D | vsock_test_zerocopy.c | 202 if (fds.revents & POLLERR) { in test_client() 396 !(fds.revents & POLLERR)) { in test_stream_msgzcopy_mangle_client()
|
| /linux/tools/testing/selftests/net/ |
| H A D | udpgso_bench_rx.c | 98 pfd.revents = 0; in do_poll() 120 if (pfd.revents != POLLIN) in do_poll() 122 pfd.revents, POLLIN); in do_poll()
|
| /linux/include/uapi/asm-generic/ |
| H A D | poll.h | 39 short revents; member
|
| /linux/samples/timers/ |
| H A D | hpet_example.c | 182 pfd.revents = 0; in hpet_poll() 197 pfd.revents); in hpet_poll()
|
| /linux/tools/testing/selftests/hid/ |
| H A D | hidraw.c | 157 if (pfds[0].revents & POLLIN) { in TEST_F() 172 ASSERT_TRUE(pfds[0].revents & POLLHUP);
|
| /linux/tools/testing/selftests/mm/ |
| H A D | uffd-common.c | 559 if (pollfd[1].revents) { in uffd_poll_thread() 560 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread() 561 err("pollfd[1].revents %d", pollfd[1].revents); in uffd_poll_thread() 566 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread() 567 err("pollfd[0].revents %d", pollfd[0].revents); in uffd_poll_thread()
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | wait_inotify.c | 73 if ((ret > 0) && (fds.revents & POLLIN)) in main()
|
| /linux/samples/cgroup/ |
| H A D | memcg_event_listener.c | 240 if (fds[0].revents & POLLERR) in monitor_events() 243 if (fds[0].revents & POLLIN) { in monitor_events()
|
| /linux/arch/arm/kernel/ |
| H A D | sys_oabi-compat.c | 307 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/tools/testing/selftests/bpf/ |
| H A D | xdp_hw_metadata.c | 458 fds[i].revents = 0; in verify_metadata() 463 fds[rxq].revents = 0; in verify_metadata() 483 if (fds[rxq].revents) in verify_metadata() 490 if (fds[i].revents == 0) in verify_metadata()
|
| /linux/tools/perf/util/ |
| H A D | evlist.c | 2171 entries[evlist__ctl_fd_pos(evlist)].revents = 0; in evlist__ctlfd_enable() 2355 if (!evlist__ctlfd_initialized(evlist) || !entries[ctlfd_pos].revents) in str_to_delay() 2358 if (entries[ctlfd_pos].revents & POLLIN) { in str_to_delay() 2387 if (entries[ctlfd_pos].revents & (POLLHUP | POLLERR)) in evlist__parse_event_enable_time() 2390 entries[ctlfd_pos].revents = 0; in evlist__parse_event_enable_time() 2577 short revents; in evlist__check_mem_load_aux() 2583 revents = entries[eet->pollfd_pos].revents; 2584 entries[eet->pollfd_pos].revents = 0; 2586 if (revents 2462 short revents; event_enable_timer__process() local [all...] |
| /linux/Documentation/accounting/ |
| H A D | psi.rst | 163 if (fds.revents & POLLERR) { 167 if (fds.revents & POLLPRI) { 170 printf("unknown event received: 0x%x\n", fds.revents);
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | mixer-test.c | 210 unsigned short revents; in wait_for_event() local 231 1, &revents); in wait_for_event() 237 if (revents & POLLERR) { in wait_for_event() 243 if (!(revents & POLLIN)) { in wait_for_event()
|