arch/powerpc/platforms/pseries/papr-hvpipe.c
435
return POLLIN | POLLRDNORM;
arch/powerpc/platforms/pseries/papr-hvpipe.c
443
return POLLIN | POLLRDNORM;
arch/um/drivers/ubd_user.c
40
kernel_pollfd.events = POLLIN;
arch/um/drivers/ubd_user.c
70
kernel_pollfd.events = POLLIN;
arch/um/os-Linux/file.c
690
pollfds[i].events = POLLIN;
arch/x86/um/user-offsets.c
72
DEFINE(UM_POLLIN, POLLIN);
drivers/misc/bcm-vk/bcm_vk_msg.c
1265
ret = (__force __poll_t)(POLLIN | POLLRDNORM);
drivers/misc/ibmvmc.c
1022
mask |= POLLIN | POLLRDNORM;
drivers/ptp/ptp_vmclock.c
449
return POLLIN | POLLRDNORM;
drivers/virt/acrn/irqfd.c
86
if (poll_bits & POLLIN)
samples/bpf/xdp_sample_user.c
1553
pfd[0].events = POLLIN;
samples/bpf/xdp_sample_user.c
1556
pfd[1].events = POLLIN;
samples/bpf/xdp_sample_user.c
1579
if (pfd[0].revents & POLLIN)
samples/bpf/xdp_sample_user.c
1581
else if (pfd[1].revents & POLLIN)
samples/cgroup/memcg_event_listener.c
233
fds[0].events = POLLIN;
samples/cgroup/memcg_event_listener.c
243
if (fds[0].revents & POLLIN) {
samples/connector/ucon.c
191
pfd.events = POLLIN;
samples/nitro_enclaves/ne_ioctl_sample.c
206
fds[0].events = POLLIN | POLLERR | POLLHUP;
samples/nitro_enclaves/ne_ioctl_sample.c
697
fds[0].events = POLLIN;
samples/nitro_enclaves/ne_ioctl_sample.c
714
if ((fds[0].revents & POLLIN) == 0) {
samples/timers/hpet_example.c
179
pfd.events = POLLIN;
samples/uhid/uhid-example.c
430
pfds[0].events = POLLIN;
samples/uhid/uhid-example.c
432
pfds[1].events = POLLIN;
samples/uhid/uhid-example.c
450
if (pfds[0].revents & POLLIN) {
samples/uhid/uhid-example.c
455
if (pfds[1].revents & POLLIN) {
tools/firewire/nosy-dump.c
969
pollfds[0].events = POLLIN;
tools/firewire/nosy-dump.c
971
pollfds[1].events = POLLIN;
tools/gpio/gpio-watch.c
56
pfd.events = POLLIN | POLLPRI;
tools/hv/hv_kvp_daemon.c
1866
pfd.events = POLLIN;
tools/hv/hv_vss_daemon.c
281
pfd.events = POLLIN;
tools/iio/iio_generic_buffer.c
785
.events = POLLIN,
tools/lib/api/io.h
58
.events = POLLIN,
tools/lib/api/io.h
65
if (n > 0 && !(pfds[0].revents & POLLIN)) {
tools/lib/perf/evlist.c
614
revent = !overwrite ? POLLIN : 0;
tools/perf/bench/sched-messaging.c
82
struct pollfd pollfd = { .fd = wakefd, .events = POLLIN };
tools/perf/builtin-daemon.c
1306
sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0);
tools/perf/builtin-daemon.c
1310
file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0);
tools/perf/builtin-daemon.c
1314
signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0);
tools/perf/builtin-daemon.c
1328
if (fda.entries[sock_pos].revents & POLLIN)
tools/perf/builtin-daemon.c
1330
if (fda.entries[file_pos].revents & POLLIN)
tools/perf/builtin-daemon.c
1332
if (fda.entries[signal_pos].revents & POLLIN)
tools/perf/builtin-daemon.c
448
.events = POLLIN,
tools/perf/builtin-daemon.c
487
.events = POLLIN,
tools/perf/builtin-daemon.c
513
struct pollfd pollfd = { .events = POLLIN, };
tools/perf/builtin-daemon.c
561
if (!(pollfd.revents & POLLIN)) {
tools/perf/builtin-ftrace.c
1132
.events = POLLIN,
tools/perf/builtin-ftrace.c
1159
if (pollfd.revents & POLLIN) {
tools/perf/builtin-ftrace.c
747
.events = POLLIN,
tools/perf/builtin-ftrace.c
816
if (pollfd.revents & POLLIN) {
tools/perf/builtin-kvm.c
1463
if (fda->entries[nr_stdin].revents & POLLIN)
tools/perf/builtin-record.c
1256
POLLIN | POLLERR | POLLHUP, fdarray_flag__nonfilterable);
tools/perf/builtin-top.c
498
struct pollfd stdin_poll = { .fd = 0, .events = POLLIN };
tools/perf/builtin-top.c
678
struct pollfd stdin_poll = { .fd = 0, .events = POLLIN };
tools/perf/tests/builtin-test.c
1025
pfds[num_pfds].events = POLLIN | POLLERR | POLLHUP | POLLNVAL;
tools/perf/tests/builtin-test.c
782
.events = POLLIN | POLLERR | POLLHUP | POLLNVAL,
tools/perf/tests/fdarray.c
127
FDA_ADD(0, 1, POLLIN, 1);
tools/perf/tests/fdarray.c
141
FDA_ADD(3, 88, POLLIN | POLLOUT, 4);
tools/perf/tests/fdarray.c
145
FDA_CHECK(0, 1, POLLIN);
tools/perf/tests/fdarray.c
148
FDA_CHECK(3, 88, POLLIN | POLLOUT);
tools/perf/tests/fdarray.c
41
fdarray__init_revents(fda, POLLIN);
tools/perf/tests/fdarray.c
58
fda->entries[2].revents = POLLIN;
tools/perf/tests/fdarray.c
70
fda->entries[0].revents = POLLIN;
tools/perf/tests/fdarray.c
71
fda->entries[3].revents = POLLIN;
tools/perf/util/evlist.c
2047
evlist->ctl_fd.pos = perf_evlist__add_pollfd(&evlist->core, fd, NULL, POLLIN,
tools/perf/util/evlist.c
2262
if (entries[ctlfd_pos].revents & POLLIN) {
tools/perf/util/evlist.c
2428
eet->pollfd_pos = perf_evlist__add_pollfd(&evlist->core, eet->timerfd, NULL, POLLIN, flags);
tools/perf/util/evlist.c
2489
if (revents & POLLIN) {
tools/perf/util/evlist.c
652
return perf_evlist__add_pollfd(&evlist->core, fd, NULL, POLLIN, fdarray_flag__default);
tools/perf/util/evlist.c
663
return perf_evlist__add_pollfd(&evlist->core, fd, NULL, POLLIN,
tools/perf/util/intel-tpebs.c
248
struct pollfd pollfd = { .events = POLLIN, };
tools/perf/util/intel-tpebs.c
298
if (!(pollfd.revents & POLLIN)) {
tools/testing/selftests/alsa/mixer-test.c
243
if (!(revents & POLLIN)) {
tools/testing/selftests/bpf/prog_tests/flow_dissector_classification.c
485
err = do_poll(fdr, POLLIN, tstop - tcur);
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
208
if (server_poll_fds[i].revents & POLLIN)
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
228
server_poll_fds[i].events = POLLIN;
tools/testing/selftests/bpf/prog_tests/test_xsk.c
1014
if (!(fds.revents & POLLIN))
tools/testing/selftests/bpf/prog_tests/test_xsk.c
995
fds.events = POLLIN;
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
278
fds.events = POLLIN;
tools/testing/selftests/bpf/test_lirc_mode2_user.c
114
struct pollfd pfd = { .fd = inputfd, .events = POLLIN };
tools/testing/selftests/bpf/xdp_hw_metadata.c
457
fds[i].events = POLLIN;
tools/testing/selftests/bpf/xdp_hw_metadata.c
462
fds[rxq].events = POLLIN;
tools/testing/selftests/cgroup/lib/cgroup_util.c
659
.events = POLLIN,
tools/testing/selftests/cgroup/lib/cgroup_util.c
672
if (ret > 0 && fds.revents & POLLIN) {
tools/testing/selftests/cgroup/wait_inotify.c
33
struct pollfd fds = { .events = POLLIN, };
tools/testing/selftests/cgroup/wait_inotify.c
73
if ((ret > 0) && (fds.revents & POLLIN))
tools/testing/selftests/drivers/net/psp_responder.c
137
pfds[0].events = POLLIN;
tools/testing/selftests/drivers/net/psp_responder.c
140
pfds[1].events = POLLIN;
tools/testing/selftests/drivers/net/psp_responder.c
145
pfds[2].events = POLLIN;
tools/testing/selftests/drivers/net/psp_responder.c
156
if (pfds[2].revents & POLLIN) {
tools/testing/selftests/drivers/net/psp_responder.c
174
if (pfds[1].revents & POLLIN) {
tools/testing/selftests/drivers/net/psp_responder.c
267
if (pfds[0].revents & POLLIN) {
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1026
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1031
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1074
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1079
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1122
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1127
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1170
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1175
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
122
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1842
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1899
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
1956
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2013
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2278
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2387
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2611
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2616
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2673
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2678
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
2998
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
3068
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
319
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
324
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
358
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
363
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
403
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
408
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
449
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
454
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
68
pfd.events = POLLIN;
tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
95
pfd.events = POLLIN;
tools/testing/selftests/ftrace/poll.c
24
struct pollfd pfd = {.events = POLLIN};
tools/testing/selftests/ftrace/poll.c
32
pfd.events = POLLIN;
tools/testing/selftests/ftrace/poll.c
59
if (pfd.events & POLLIN)
tools/testing/selftests/gpio/gpio-cdev-uaf.c
177
pfds.events = POLLIN;
tools/testing/selftests/hid/hid_common.h
260
pfds[0].events = POLLIN;
tools/testing/selftests/hid/hid_common.h
270
if (pfds[0].revents & POLLIN) {
tools/testing/selftests/hid/hidraw.c
146
pfds[0].events = POLLIN;
tools/testing/selftests/hid/hidraw.c
157
if (pfds[0].revents & POLLIN) {
tools/testing/selftests/iommu/iommufd_utils.h
1117
struct pollfd pollfd = { .fd = event_fd, .events = POLLIN };
tools/testing/selftests/ir/ir_loopback.c
176
struct pollfd pfd = { .fd = rlircfd, .events = POLLIN };
tools/testing/selftests/kselftest_harness.h
997
poll_child.events = POLLIN;
tools/testing/selftests/mm/uffd-common.c
544
pollfd[0].events = POLLIN;
tools/testing/selftests/mm/uffd-common.c
546
pollfd[1].events = POLLIN;
tools/testing/selftests/mm/uffd-common.c
558
if (!(pollfd[1].revents & POLLIN))
tools/testing/selftests/mm/uffd-common.c
564
if (!(pollfd[0].revents & POLLIN))
tools/testing/selftests/net/lib/csum.c
959
pfd.events = POLLIN;
tools/testing/selftests/net/lib/csum.c
964
if (pfd.revents & POLLIN)
tools/testing/selftests/net/mptcp/mptcp_connect.c
1189
polls.events = POLLIN;
tools/testing/selftests/net/mptcp/mptcp_connect.c
636
.events = POLLIN | POLLOUT,
tools/testing/selftests/net/mptcp/mptcp_connect.c
658
fds.events & POLLIN, fds.events & POLLOUT);
tools/testing/selftests/net/mptcp/mptcp_connect.c
662
if (fds.revents & POLLIN) {
tools/testing/selftests/net/mptcp/mptcp_connect.c
677
fds.events &= ~POLLIN;
tools/testing/selftests/net/mptcp/mptcp_connect.c
731
if ((fds.events & POLLIN) == 0)
tools/testing/selftests/net/msg_zerocopy.c
479
if (do_poll(fd, domain == PF_RDS ? POLLIN : POLLERR))
tools/testing/selftests/net/msg_zerocopy.c
676
do_poll(fd, POLLIN);
tools/testing/selftests/net/psock_tpacket.c
233
pfd.events = POLLIN | POLLERR;
tools/testing/selftests/net/psock_tpacket.c
594
pfd.events = POLLIN | POLLERR;
tools/testing/selftests/net/tcp_mmap.c
214
struct pollfd pfd = { .fd = fd, .events = POLLIN, };
tools/testing/selftests/net/tls.c
1344
fd.events = POLLIN;
tools/testing/selftests/net/tls.c
1347
EXPECT_EQ(fd.revents & POLLIN, 1);
tools/testing/selftests/net/tls.c
1361
fd.events = POLLIN;
tools/testing/selftests/net/tls.c
1365
EXPECT_EQ(fd.revents & POLLIN, 1);
tools/testing/selftests/net/tls.c
1376
fd.events = POLLIN;
tools/testing/selftests/net/tls.c
1382
EXPECT_EQ(fd.revents & POLLIN, 1);
tools/testing/selftests/net/tls.c
1388
fd.events = POLLIN;
tools/testing/selftests/net/tls.c
1390
EXPECT_EQ(fd.revents & POLLIN, 1);
tools/testing/selftests/net/tls.c
2225
pfd.events = POLLIN;
tools/testing/selftests/net/tls.c
2245
pfd.events = POLLIN;
tools/testing/selftests/net/tls.c
2292
pfd.events = POLLIN;
tools/testing/selftests/net/tls.c
2773
pfd.events = POLLIN;
tools/testing/selftests/net/tls.c
2785
pfd.events = POLLIN;
tools/testing/selftests/net/tls.c
2790
pfd.events = POLLIN;
tools/testing/selftests/net/tls.c
2879
pfd.events = POLLIN;
tools/testing/selftests/net/tls.c
2885
pfd.events = POLLIN;
tools/testing/selftests/net/udpgso_bench_rx.c
120
if (pfd.revents != POLLIN)
tools/testing/selftests/net/udpgso_bench_rx.c
122
pfd.revents, POLLIN);
tools/testing/selftests/net/udpgso_bench_rx.c
97
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
175
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
178
ASSERT_TRUE(pfd.revents & POLLIN);
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
228
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
231
ASSERT_TRUE(pfd.revents & POLLIN);
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
337
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
340
ASSERT_TRUE(pfd.revents & POLLIN);
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
424
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
427
ASSERT_TRUE(pfd.revents & POLLIN);
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
515
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
574
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
634
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
698
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
701
ASSERT_TRUE(pfd.revents & POLLIN);
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
802
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
816
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
819
ASSERT_TRUE(pfd.revents & POLLIN);
tools/testing/selftests/pidfd/pidfd_autoreap_test.c
887
pfd.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_getfd_test.c
251
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
206
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
211
ASSERT_TRUE(!!(fds.revents & POLLIN));
tools/testing/selftests/pidfd/pidfd_info_test.c
282
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
287
if (fds.revents & POLLIN)
tools/testing/selftests/pidfd/pidfd_info_test.c
350
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
354
ASSERT_TRUE(!!(fds.revents & POLLIN));
tools/testing/selftests/pidfd/pidfd_info_test.c
462
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
467
if (fds.revents & POLLIN)
tools/testing/selftests/pidfd/pidfd_info_test.c
527
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
531
ASSERT_TRUE(!!(fds.revents & POLLIN));
tools/testing/selftests/pidfd/pidfd_info_test.c
618
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
623
if (fds.revents & POLLIN)
tools/testing/selftests/pidfd/pidfd_info_test.c
674
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_info_test.c
678
ASSERT_TRUE(!!(fds.revents & POLLIN));
tools/testing/selftests/pidfd/pidfd_poll_test.c
32
fds.events = POLLIN;
tools/testing/selftests/pidfd/pidfd_poll_test.c
97
if (!(fds.revents & POLLIN))
tools/testing/selftests/pipe/pipe_bench.c
251
struct pollfd pfd = { .fd = hs_rd, .events = POLLIN };
tools/testing/selftests/powerpc/tm/tm-signal-pagefault.c
95
pollfd.events = POLLIN;
tools/testing/selftests/seccomp/seccomp_bpf.c
3448
pollfd.events = POLLIN | POLLOUT;
tools/testing/selftests/seccomp/seccomp_bpf.c
3451
EXPECT_EQ(pollfd.revents, POLLIN);
tools/testing/selftests/seccomp/seccomp_bpf.c
3467
pollfd.events = POLLIN | POLLOUT;
tools/testing/selftests/seccomp/seccomp_bpf.c
3884
pollfd.events = POLLIN | POLLOUT;
tools/testing/selftests/seccomp/seccomp_bpf.c
3887
EXPECT_EQ(pollfd.revents, POLLIN);
tools/testing/selftests/seccomp/seccomp_bpf.c
3892
pollfd.events = POLLIN | POLLOUT;
tools/testing/selftests/seccomp/seccomp_bpf.c
4926
.events = POLLIN,
tools/testing/selftests/sync/sync.c
63
fds.events = POLLIN | POLLERR;
tools/testing/selftests/ublk/kublk.c
1321
pfds[0].events = POLLIN;
tools/testing/selftests/ublk/kublk.c
1323
pfds[1].events = POLLIN;
tools/testing/selftests/ublk/kublk.c
1332
if (pfds[1].revents & POLLIN)
tools/testing/selftests/ublk/kublk.c
1336
if (pfds[0].revents & POLLIN)
tools/testing/vsock/vsock_perf.c
207
fds.events = POLLIN | POLLERR |
tools/testing/vsock/vsock_perf.c
218
if (fds.revents & POLLIN) {
tools/testing/vsock/vsock_test.c
1553
fds.events = POLLIN | POLLRDNORM | POLLERR |
tools/testing/vsock/vsock_test.c
1569
if (fds.revents & (POLLIN | POLLRDNORM)) {
tools/testing/vsock/vsock_test.c
895
poll_flags = POLLIN | POLLRDNORM;
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
189
pfds[0].events = POLLIN;
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
193
if (ret && (pfds[0].revents & POLLIN)) {
tools/usb/usbip/src/usbipd.c
549
fds[i].events = POLLIN;
tools/usb/usbip/src/usbipd.c
568
if (fds[i].revents & POLLIN) {
tools/virtio/vhost_net_test.c
263
if (vq->fds.revents & POLLIN)
tools/virtio/virtio-trace/trace-agent-ctl.c
55
poll_fd.events = POLLIN;
tools/virtio/virtio_test.c
123
dev->fds[info->idx].events = POLLIN;
tools/virtio/virtio_test.c
164
if (dev->fds[i].revents & POLLIN) {