Home
last modified time | relevance | path

Searched refs:POLLIN (Results 1 – 25 of 66) sorted by relevance

123

/Linux-v5.15/tools/perf/tests/
Dfdarray.c41 fdarray__init_revents(fda, POLLIN); in test__fdarray__filter()
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()
127 FDA_ADD(0, 1, POLLIN, 1); in test__fdarray__add()
141 FDA_ADD(3, 88, POLLIN | POLLOUT, 4); in test__fdarray__add()
145 FDA_CHECK(0, 1, POLLIN); in test__fdarray__add()
148 FDA_CHECK(3, 88, POLLIN | POLLOUT); in test__fdarray__add()
/Linux-v5.15/tools/testing/selftests/net/af_unix/
Dtest_unix_oob.c224 wait_for_data(pfd, POLLIN | POLLPRI); in main()
241 wait_for_data(pfd, POLLIN | POLLPRI); in main()
266 wait_for_data(pfd, POLLIN | POLLPRI); in main()
304 wait_for_data(pfd, POLLIN | POLLPRI); in main()
336 wait_for_data(pfd, POLLIN | POLLPRI); in main()
367 wait_for_data(pfd, POLLIN | POLLPRI); in main()
399 wait_for_data(pfd, POLLIN | POLLPRI); in main()
429 wait_for_data(pfd, POLLIN | POLLPRI); in main()
/Linux-v5.15/arch/um/drivers/
Dubd_user.c40 kernel_pollfd.events = POLLIN; in start_io_thread()
70 kernel_pollfd.events = POLLIN; in ubd_read_poll()
/Linux-v5.15/samples/uhid/
Duhid-example.c430 pfds[0].events = POLLIN; in main()
432 pfds[1].events = POLLIN; in main()
450 if (pfds[0].revents & POLLIN) { in main()
455 if (pfds[1].revents & POLLIN) { in main()
/Linux-v5.15/tools/testing/selftests/pidfd/
Dpidfd_poll_test.c32 fds.events = POLLIN; in main()
97 if (!(fds.revents & POLLIN)) in main()
/Linux-v5.15/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c68 pfd.events = POLLIN; in waiter_entry1ap()
95 pfd.events = POLLIN; in waiter_entry1op()
122 pfd.events = POLLIN; in waiter_entry2ap()
319 pfd.events = POLLIN; in TEST()
324 pfd.events = POLLIN; in TEST()
358 pfd.events = POLLIN; in TEST()
363 pfd.events = POLLIN; in TEST()
403 pfd.events = POLLIN; in TEST()
408 pfd.events = POLLIN; in TEST()
449 pfd.events = POLLIN; in TEST()
[all …]
/Linux-v5.15/tools/perf/
Dbuiltin-daemon.c448 .events = POLLIN, in daemon_session__wait()
487 .events = POLLIN, in daemon__wait()
513 struct pollfd pollfd = { .events = POLLIN, }; in daemon_session__control()
562 if (!(pollfd.revents & POLLIN)) { in daemon_session__control()
1309 sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1313 file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1317 signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1331 if (fda.entries[sock_pos].revents & POLLIN) in __cmd_start()
1333 if (fda.entries[file_pos].revents & POLLIN) in __cmd_start()
1335 if (fda.entries[signal_pos].revents & POLLIN) in __cmd_start()
/Linux-v5.15/tools/testing/selftests/kvm/
Ddemand_paging_test.c152 pollfd[0].events = POLLIN; in uffd_handler_thread_fn()
154 pollfd[1].events = POLLIN; in uffd_handler_thread_fn()
175 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn()
182 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
/Linux-v5.15/tools/testing/selftests/net/
Dudpgso_bench_rx.c97 pfd.events = POLLIN; in do_poll()
120 if (pfd.revents != POLLIN) in do_poll()
122 pfd.revents, POLLIN); in do_poll()
Dtls.c906 fd.events = POLLIN; in TEST_F()
909 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
923 fd.events = POLLIN; in TEST_F()
927 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
938 fd.events = POLLIN; in TEST_F()
944 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
950 fd.events = POLLIN; in TEST_F()
952 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
/Linux-v5.15/include/uapi/asm-generic/
Dpoll.h6 #define POLLIN 0x0001 macro
/Linux-v5.15/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c455 .events = POLLIN | POLLOUT, in copyfd_io_poll()
478 fds.events & POLLIN, fds.events & POLLOUT); in copyfd_io_poll()
482 if (fds.revents & POLLIN) { in copyfd_io_poll()
488 fds.events &= ~POLLIN; in copyfd_io_poll()
522 if ((fds.events & POLLIN) == 0) in copyfd_io_poll()
820 polls.events = POLLIN; in main_loop_s()
/Linux-v5.15/samples/nitro_enclaves/
Dne_ioctl_sample.c207 fds[0].events = POLLIN | POLLERR | POLLHUP; in ne_poll_enclave_fd()
698 fds[0].events = POLLIN; in ne_start_enclave_check_booted()
715 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted()
/Linux-v5.15/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c171 pfds[0].events = POLLIN; in handle_ep0()
175 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
/Linux-v5.15/tools/virtio/virtio-trace/
Dtrace-agent-ctl.c55 poll_fd.events = POLLIN; in wait_order()
/Linux-v5.15/tools/gpio/
Dgpio-watch.c56 pfd.events = POLLIN | POLLPRI; in main()
/Linux-v5.15/drivers/staging/fieldbus/Documentation/ABI/
Dfieldbus-dev-cdev24 Note that POLLIN | POLLOUT events are always set, because the
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c113 struct pollfd pfd = { .fd = inputfd, .events = POLLIN }; in main()
/Linux-v5.15/arch/x86/um/
Duser-offsets.c78 DEFINE(UM_POLLIN, POLLIN); in foo()
/Linux-v5.15/tools/virtio/
Dvirtio_test.c123 dev->fds[info->idx].events = POLLIN; in vq_info_add()
163 if (dev->fds[i].revents & POLLIN) { in wait_for_interrupt()
/Linux-v5.15/arch/um/os-Linux/
Dsigio.c270 .events = POLLIN, in setup_initial_poll()
374 .events = POLLIN, in sigio_broken()
/Linux-v5.15/tools/testing/selftests/ir/
Dir_loopback.c167 struct pollfd pfd = { .fd = rlircfd, .events = POLLIN }; in main()
/Linux-v5.15/tools/testing/selftests/sync/
Dsync.c63 fds.events = POLLIN | POLLERR; in sync_wait()
/Linux-v5.15/tools/testing/selftests/cgroup/
Dcgroup_util.c609 .events = POLLIN, in cg_wait_for()
622 if (ret > 0 && fds.revents & POLLIN) { in cg_wait_for()
/Linux-v5.15/samples/connector/
Ducon.c191 pfd.events = POLLIN; in main()

123