| /linux/tools/perf/tests/ |
| H A D | fdarray.c | 41 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/tools/testing/selftests/ftrace/ |
| H A D | poll.c | 24 struct pollfd pfd = {.events = POLLIN}; in main() 32 pfd.events = POLLIN; in main() 58 /* Reset poll by read if POLLIN is specified. */ in main() 59 if (pfd.events & POLLIN) in main()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_info_test.c | 206 fds.events = POLLIN; in TEST_F() 211 ASSERT_TRUE(!!(fds.revents & POLLIN)); in TEST_F() 282 fds.events = POLLIN; in TEST_F() 287 if (fds.revents & POLLIN) in TEST_F() 350 fds.events = POLLIN; in TEST_F() 354 ASSERT_TRUE(!!(fds.revents & POLLIN)); in TEST_F() 462 fds.events = POLLIN; in TEST_F() 467 if (fds.revents & POLLIN) in TEST_F() 527 fds.events = POLLIN; in TEST_F() 531 ASSERT_TRUE(!!(fds.revents & POLLIN)); in TEST_F() [all...] |
| H A D | pidfd_poll_test.c | 32 fds.events = POLLIN; in main() 97 if (!(fds.revents & POLLIN)) in main()
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | test_unix_oob.c | |
| /linux/tools/testing/selftests/ftrace/test.d/trigger/ |
| H A D | trigger-hist-poll.tc | 17 # returns soon with POLLIN | POLLOUT, but not POLLPRI. 29 # Test POLLIN
|
| /linux/arch/um/drivers/ |
| H A D | ubd_user.c | 40 kernel_pollfd.events = POLLIN; in start_io_thread() 70 kernel_pollfd.events = POLLIN; in ubd_read_poll()
|
| /linux/tools/testing/selftests/filesystems/epoll/ |
| H A D | epoll_wakeup_test.c | 68 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/tools/testing/selftests/cgroup/ |
| H A D | wait_inotify.c | 33 struct pollfd fds = { .events = POLLIN, }; in main() 73 if ((ret > 0) && (fds.revents & POLLIN)) in main()
|
| /linux/tools/perf/ |
| H A D | builtin-daemon.c | 448 .events = POLLIN, in daemon_session__wait() 487 .events = POLLIN, in daemon__wait() 513 struct pollfd pollfd = { .events = POLLIN, }; in daemon_session__control() 561 if (!(pollfd.revents & POLLIN)) { in daemon_session__control() 1306 sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1310 file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1314 signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1328 if (fda.entries[sock_pos].revents & POLLIN) in __cmd_start() 1330 if (fda.entries[file_pos].revents & POLLIN) in __cmd_start() 1332 if (fda.entries[signal_pos].revents & POLLIN) in __cmd_start() [all...] |
| /linux/samples/uhid/ |
| H A D | uhid-example.c | 430 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/tools/testing/selftests/net/ |
| H A D | udpgso_bench_rx.c | 97 pfd.events = POLLIN; in do_poll() 120 if (pfd.revents != POLLIN) in do_poll() 122 pfd.revents, POLLIN); in do_poll()
|
| H A D | tls.c | 1329 TEST_F(tls, pollin) in TEST_F() argument 1338 fd.events = POLLIN; in TEST_F() 1341 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F() 1355 fd.events = POLLIN; in TEST_F() 1359 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F() 1370 fd.events = POLLIN; in TEST_F() 1376 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F() 1382 fd.events = POLLIN; in TEST_F() 1384 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F() 2219 pfd.events = POLLIN; in TEST_F() [all …]
|
| /linux/tools/testing/vsock/ |
| H A D | vsock_perf.c | 207 fds.events = POLLIN | POLLERR | in run_receiver() 218 if (fds.revents & POLLIN) { in run_receiver() 247 printf("POLLIN wakeups: %i\n", read_cnt); in run_receiver()
|
| /linux/include/uapi/asm-generic/ |
| H A D | poll.h | 6 #define POLLIN 0x0001 macro
|
| /linux/tools/testing/selftests/hid/ |
| H A D | hidraw.c | 146 pfds[0].events = POLLIN; in TEST_F() 157 if (pfds[0].revents & POLLIN) { in TEST_F()
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_connect.c | 636 .events = POLLIN | POLLOUT, in copyfd_io_poll() 657 "POLLIN %u, POLLOUT %u)\n", __func__, in copyfd_io_poll() 658 fds.events & POLLIN, fds.events & POLLOUT); in copyfd_io_poll() 662 if (fds.revents & POLLIN) { in copyfd_io_poll() 677 fds.events &= ~POLLIN; in copyfd_io_poll() 731 if ((fds.events & POLLIN) == 0) in copyfd_io_poll() 1189 polls.events = POLLIN; in main_loop_s()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_eu_stall.c | 45 bool pollin; member 593 ret = wait_event_interruptible(stream->poll_wq, stream->pollin); in xe_eu_stall_stream_read() 612 stream->pollin = false; in xe_eu_stall_stream_read() 721 stream->pollin = true; in eu_stall_data_buf_poll_work_fn() 781 if (stream->pollin) in xe_eu_stall_stream_poll_locked()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | uffd-common.c | 544 pollfd[0].events = POLLIN; in uffd_poll_thread() 546 pollfd[1].events = POLLIN; in uffd_poll_thread() 558 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread() 564 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
|
| /linux/samples/cgroup/ |
| H A D | memcg_event_listener.c | 233 fds[0].events = POLLIN; in monitor_events() 243 if (fds[0].revents & POLLIN) { in monitor_events()
|
| /linux/Documentation/userspace-api/media/cec/ |
| H A D | cec-func-poll.rst | 45 is non-zero). CEC devices set the ``POLLIN`` and ``POLLRDNORM`` flags in
|
| /linux/Documentation/admin-guide/mm/ |
| H A D | userfaultfd.rst | 26 1) ``read/POLLIN`` protocol to notify a userland thread of the faults 88 a later API version) which will specify the ``read/POLLIN`` protocol 333 poll() to the ``userfaultfd`` in parallel. When a ``POLLIN`` event is
|
| /linux/arch/x86/um/ |
| H A D | user-offsets.c | 72 DEFINE(UM_POLLIN, POLLIN); in foo()
|
| /linux/tools/gpio/ |
| H A D | gpio-watch.c | 56 pfd.events = POLLIN | POLLPRI; in main()
|
| /linux/tools/virtio/virtio-trace/ |
| H A D | trace-agent-ctl.c | 55 poll_fd.events = POLLIN; in wait_order()
|