Home
last modified time | relevance | path

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

1234

/linux/tools/perf/tests/
H A 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()
159 FDA_ADD(0, 1, POLLIN, 1); in test__fdarray__add()
173 FDA_ADD(3, 88, POLLIN | POLLOUT, 4);
177 FDA_CHECK(0, 1, POLLIN);
180 FDA_CHECK(3, 88, POLLIN | POLLOUT);
/linux/tools/testing/selftests/ftrace/
H A Dpoll.c24 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 Dpidfd_info_test.c206 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 Dpidfd_poll_test.c32 fds.events = POLLIN; in main()
97 if (!(fds.revents & POLLIN)) in main()
/linux/tools/testing/selftests/net/af_unix/
H A Dtest_unix_oob.c
/linux/arch/um/drivers/
H A Dubd_user.c40 kernel_pollfd.events = POLLIN; in start_io_thread()
70 kernel_pollfd.events = POLLIN; in ubd_read_poll()
/linux/samples/uhid/
H A 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/tools/testing/selftests/cgroup/
H A Dwait_inotify.c33 struct pollfd fds = { .events = POLLIN, }; in main()
73 if ((ret > 0) && (fds.revents & POLLIN)) in main()
/linux/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c68 pfd.events = POLLIN; in waiter_entry1ap()
84 pfd.events = POLLIN; in waiter_entry1o()
113 pfd.events = POLLIN; in waiter_entry2a()
140 pfd.events = POLLIN; in emitter_entry1()
337 pfd.events = POLLIN;
342 pfd.events = POLLIN; in TEST()
376 pfd.events = POLLIN;
381 pfd.events = POLLIN; in TEST()
421 pfd.events = POLLIN;
426 pfd.events = POLLIN; in TEST()
[all...]
/linux/tools/perf/
H A 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()
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/tools/testing/selftests/net/
H A 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()
H A Dtls.c897 struct pollfd pfd = { .fd = self->cfd, .events = POLLIN }; in TEST_F()
1413 fd.events = POLLIN; in TEST_F()
1416 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
1430 fd.events = POLLIN; in TEST_F()
1434 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
1445 fd.events = POLLIN; in TEST_F()
1451 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
1457 fd.events = POLLIN; in TEST_F()
1459 EXPECT_EQ(fd.revents & POLLIN, 1); in TEST_F()
2351 pfd.events = POLLIN; in TEST_F()
[all...]
/linux/tools/testing/selftests/hid/
H A Dhidraw.c146 pfds[0].events = POLLIN; in TEST_F()
157 if (pfds[0].revents & POLLIN) { in TEST_F()
/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c206 fds[0].events = POLLIN | POLLERR | POLLHUP; in ne_poll_enclave_fd()
697 fds[0].events = POLLIN; in ne_start_enclave_check_booted()
714 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted()
/linux/include/uapi/asm-generic/
H A Dpoll.h6 #define POLLIN 0x0001 macro
/linux/tools/testing/selftests/filesystems/
H A Dreaddir_hold.h134 struct pollfd pfd = { .fd = h->uffd, .events = POLLIN }; in readdir_hold_faulted()
201 pfd.events = POLLIN; in readdir_hold_check()
/linux/samples/cgroup/
H A Dmemcg_event_listener.c233 fds[0].events = POLLIN; in monitor_events()
243 if (fds[0].revents & POLLIN) { in monitor_events()
/linux/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c189 pfds[0].events = POLLIN; in handle_ep0()
193 if (ret && (pfds[0].revents & POLLIN)) { in handle_ep0()
/linux/tools/virtio/virtio-trace/
H A Dtrace-agent-ctl.c55 poll_fd.events = POLLIN; in wait_order()
/linux/tools/testing/selftests/mm/
H A Duffd-common.c546 pollfd[0].events = POLLIN; in uffd_poll_thread()
548 pollfd[1].events = POLLIN; in uffd_poll_thread()
560 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread()
566 if (!(pollfd[0].revents & POLLIN)) in uffd_poll_thread()
/linux/tools/gpio/
H A Dgpio-watch.c56 pfd.events = POLLIN | POLLPRI; in main()
/linux/tools/testing/vsock/
H A Dvsock_perf.c207 fds.events = POLLIN | POLLERR | in run_receiver()
218 if (fds.revents & POLLIN) { in run_receiver()
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c638 .events = POLLIN | POLLOUT, in copyfd_io_poll()
660 fds.events & POLLIN, fds.events & POLLOUT); in copyfd_io_poll()
664 if (fds.revents & POLLIN) { in copyfd_io_poll()
679 fds.events &= ~POLLIN; in copyfd_io_poll()
733 if ((fds.events & POLLIN) == 0) in copyfd_io_poll()
1191 polls.events = POLLIN; in main_loop_s()
/linux/tools/testing/selftests/bpf/
H A Dtest_lirc_mode2_user.c
/linux/arch/x86/um/
H A Duser-offsets.c72 DEFINE(UM_POLLIN, POLLIN); in foo()

1234