Symbol: revents
cddl/usr.sbin/zfsd/zfsd.cc
345
fds[0].revents = 0;
cddl/usr.sbin/zfsd/zfsd.cc
348
fds[1].revents = 0;
cddl/usr.sbin/zfsd/zfsd.cc
359
if ((fds[0].revents & POLLIN) != 0)
cddl/usr.sbin/zfsd/zfsd.cc
362
if ((fds[1].revents & POLLIN) != 0) {
cddl/usr.sbin/zfsd/zfsd.cc
382
if ((fds[0].revents & POLLERR) != 0) {
cddl/usr.sbin/zfsd/zfsd.cc
387
if ((fds[0].revents & POLLHUP) != 0) {
crypto/heimdal/lib/ipc/server.c
1007
if (fds[n].revents & POLLERR) {
crypto/heimdal/lib/ipc/server.c
1012
if (fds[n].revents & POLLIN)
crypto/heimdal/lib/ipc/server.c
1014
if (fds[n].revents & POLLOUT)
crypto/heimdal/lib/ipc/server.c
999
fds[n].revents = 0;
crypto/heimdal/lib/roken/getifaddrs.c
407
pfd.revents = 0;
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
264
if (pfd->revents != 0 && !(pfd->revents & (POLLIN | POLLOUT)))
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
267
return ((pfd->revents & POLLIN) ? SSF_READ : 0) |
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
268
((pfd->revents & POLLOUT) ? SSF_WRITE : 0) |
crypto/krb5/src/lib/krb5/os/sendto_kdc.c
269
((pfd->revents & POLLERR) ? SSF_EXCEPTION : 0);
crypto/krb5/src/util/verto/ev.c
1988
pendingcb (EV_P_ ev_prepare *w, int revents)
crypto/krb5/src/util/verto/ev.c
1993
ev_feed_event (EV_P_ void *w, int revents) EV_THROW
crypto/krb5/src/util/verto/ev.c
1999
pendings [pri][w_->pending - 1].events |= revents;
crypto/krb5/src/util/verto/ev.c
2005
pendings [pri][w_->pending - 1].events = revents;
crypto/krb5/src/util/verto/ev.c
2019
feed_reverse_done (EV_P_ int revents)
crypto/krb5/src/util/verto/ev.c
2022
ev_feed_event (EV_A_ rfeeds [--rfeedcnt], revents);
crypto/krb5/src/util/verto/ev.c
2038
fd_event_nocheck (EV_P_ int fd, int revents)
crypto/krb5/src/util/verto/ev.c
2045
int ev = w->events & revents;
crypto/krb5/src/util/verto/ev.c
2055
fd_event (EV_P_ int fd, int revents)
crypto/krb5/src/util/verto/ev.c
2060
fd_event_nocheck (EV_A_ fd, revents);
crypto/krb5/src/util/verto/ev.c
2064
ev_feed_fd_event (EV_P_ int fd, int revents) EV_THROW
crypto/krb5/src/util/verto/ev.c
2067
fd_event_nocheck (EV_A_ fd, revents);
crypto/krb5/src/util/verto/ev.c
2484
pipecb (EV_P_ ev_io *iow, int revents)
crypto/krb5/src/util/verto/ev.c
2488
if (revents & EV_READ)
crypto/krb5/src/util/verto/ev.c
2603
sigfdcb (EV_P_ ev_io *iow, int revents)
crypto/krb5/src/util/verto/ev.c
2660
childcb (EV_P_ ev_signal *sw, int revents)
crypto/krb5/src/util/verto/ev.c
3264
ev_invoke (EV_P_ void *w, int revents)
crypto/krb5/src/util/verto/ev.c
3266
EV_CB_INVOKE ((W)w, revents);
crypto/krb5/src/util/verto/ev.c
4209
static void noinline stat_timer_cb (EV_P_ ev_timer *w_, int revents);
crypto/krb5/src/util/verto/ev.c
4339
infy_cb (EV_P_ ev_io *w, int revents)
crypto/krb5/src/util/verto/ev.c
4462
stat_timer_cb (EV_P_ ev_timer *w_, int revents)
crypto/krb5/src/util/verto/ev.c
4688
embed_io_cb (EV_P_ ev_io *io, int revents)
crypto/krb5/src/util/verto/ev.c
4699
embed_prepare_cb (EV_P_ ev_prepare *prepare, int revents)
crypto/krb5/src/util/verto/ev.c
4715
embed_fork_cb (EV_P_ ev_fork *fork_w, int revents)
crypto/krb5/src/util/verto/ev.c
4733
embed_idle_cb (EV_P_ ev_idle *idle, int revents)
crypto/krb5/src/util/verto/ev.c
4923
void (*cb)(int revents, void *arg);
crypto/krb5/src/util/verto/ev.c
4928
once_cb (EV_P_ struct ev_once *once, int revents)
crypto/krb5/src/util/verto/ev.c
4930
void (*cb)(int revents, void *arg) = once->cb;
crypto/krb5/src/util/verto/ev.c
4937
cb (revents, arg);
crypto/krb5/src/util/verto/ev.c
4941
once_cb_io (EV_P_ ev_io *w, int revents)
crypto/krb5/src/util/verto/ev.c
4945
once_cb (EV_A_ once, revents | ev_clear_pending (EV_A_ &once->to));
crypto/krb5/src/util/verto/ev.c
4949
once_cb_to (EV_P_ ev_timer *w, int revents)
crypto/krb5/src/util/verto/ev.c
4953
once_cb (EV_A_ once, revents | ev_clear_pending (EV_A_ &once->io));
crypto/krb5/src/util/verto/ev.c
4957
ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg) EV_THROW
crypto/krb5/src/util/verto/ev.h
249
# define EV_CB_DECLARE(type) void (*cb)(EV_P_ struct type *w, int revents);
crypto/krb5/src/util/verto/ev.h
252
# define EV_CB_INVOKE(watcher,revents) (watcher)->cb (EV_A_ (watcher), (revents))
crypto/krb5/src/util/verto/ev.h
256
#define EV_CB(type,name) void name (EV_P_ struct ev_ ## type *w, int revents)
crypto/krb5/src/util/verto/ev.h
654
EV_API_DECL void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg) EV_THROW;
crypto/krb5/src/util/verto/ev.h
747
EV_API_DECL void ev_feed_event (EV_P_ void *w, int revents) EV_THROW;
crypto/krb5/src/util/verto/ev.h
748
EV_API_DECL void ev_feed_fd_event (EV_P_ int fd, int revents) EV_THROW;
crypto/krb5/src/util/verto/ev.h
753
EV_API_DECL void ev_invoke (EV_P_ void *w, int revents);
crypto/krb5/src/util/verto/ev_poll.c
112
if (expect_false (p->revents)) /* this expect is debatable */
crypto/krb5/src/util/verto/ev_poll.c
116
if (expect_false (p->revents & POLLNVAL))
crypto/krb5/src/util/verto/ev_poll.c
122
(p->revents & (POLLOUT | POLLERR | POLLHUP) ? EV_WRITE : 0)
crypto/krb5/src/util/verto/ev_poll.c
123
| (p->revents & (POLLIN | POLLERR | POLLHUP) ? EV_READ : 0)
crypto/krb5/src/util/verto/verto-k5ev.c
113
libev_callback(EV_P_ ev_watcher *w, int revents)
crypto/krb5/src/util/verto/verto-k5ev.c
125
if (revents & EV_READ)
crypto/krb5/src/util/verto/verto-k5ev.c
127
if (revents & EV_WRITE)
crypto/krb5/src/util/verto/verto-k5ev.c
129
if (revents & EV_ERROR)
crypto/krb5/src/util/verto/verto-libev.c
79
libev_callback(EV_P_ ev_watcher *w, int revents)
crypto/krb5/src/util/verto/verto-libev.c
91
if (revents & EV_READ)
crypto/krb5/src/util/verto/verto-libev.c
93
if (revents & EV_WRITE)
crypto/krb5/src/util/verto/verto-libev.c
95
if (revents & EV_ERROR)
crypto/openssh/channels.c
2687
pollfd_offset, pfd->fd, pfd->events, pfd->revents);
crypto/openssh/channels.c
2852
if ((pfd->revents & POLLNVAL) != 0) {
crypto/openssh/channels.c
2856
if ((pfd->revents & (revents_mask|POLLHUP|POLLERR)) != 0)
crypto/openssh/channels.c
2874
if (pfd[p].revents == 0)
crypto/openssh/channels.c
2877
p, pfd[p].fd, pfd[p].revents);
crypto/openssh/clientloop.c
705
(*pfdp)[p].revents = 0;
crypto/openssh/clientloop.c
742
(*pfdp)[p].revents = 0;
crypto/openssh/clientloop.c
750
*conn_in_readyp = (*pfdp)[0].revents != 0;
crypto/openssh/clientloop.c
751
*conn_out_readyp = (*pfdp)[1].revents != 0;
crypto/openssh/monitor.c
511
if (pfd[1].revents) {
crypto/openssh/monitor.c
519
if (pfd[0].revents)
crypto/openssh/openbsd-compat/bsd-poll.c
83
fds[i].revents = 0;
crypto/openssh/openbsd-compat/bsd-poll.c
87
fds[i].revents |= POLLIN;
crypto/openssh/openbsd-compat/bsd-poll.c
89
fds[i].revents |= POLLOUT;
crypto/openssh/openbsd-compat/bsd-poll.c
91
fds[i].revents |= POLLPRI;
crypto/openssh/openbsd-compat/bsd-poll.h
44
short revents;
crypto/openssh/regress/netcat.c
854
if (pfd[n].revents & (POLLERR|POLLNVAL)) {
crypto/openssh/regress/netcat.c
860
pfd[POLL_STDIN].revents & POLLHUP &&
crypto/openssh/regress/netcat.c
861
! (pfd[POLL_STDIN].revents & POLLIN))
crypto/openssh/regress/netcat.c
865
pfd[POLL_NETIN].revents & POLLHUP &&
crypto/openssh/regress/netcat.c
866
! (pfd[POLL_NETIN].revents & POLLIN))
crypto/openssh/regress/netcat.c
869
if (pfd[POLL_NETOUT].revents & POLLHUP) {
crypto/openssh/regress/netcat.c
875
if (pfd[POLL_STDOUT].revents & POLLHUP)
crypto/openssh/regress/netcat.c
888
if (pfd[POLL_STDIN].revents & POLLIN && stdinbufpos < BUFSIZE) {
crypto/openssh/regress/netcat.c
902
if (pfd[POLL_NETOUT].revents & POLLOUT && stdinbufpos > 0) {
crypto/openssh/regress/netcat.c
915
if (pfd[POLL_NETIN].revents & POLLIN && netinbufpos < BUFSIZE) {
crypto/openssh/regress/netcat.c
937
if (pfd[POLL_STDOUT].revents & POLLOUT && netinbufpos > 0) {
crypto/openssh/serverloop.c
222
(*pfdp)[p].revents = 0;
crypto/openssh/serverloop.c
228
*conn_in_readyp = (*pfdp)[0].revents != 0;
crypto/openssh/serverloop.c
229
*conn_out_readyp = (*pfdp)[1].revents != 0;
crypto/openssh/sftp-server.c
2070
if (pfd[0].revents & (POLLIN|POLLHUP)) {
crypto/openssh/sftp-server.c
2084
if (pfd[1].revents & (POLLOUT|POLLHUP)) {
crypto/openssh/ssh-agent.c
2062
if (pfd[i].revents == 0)
crypto/openssh/ssh-agent.c
2079
if ((pfd[i].revents & (POLLIN|POLLERR)) == 0)
crypto/openssh/ssh-agent.c
2090
if ((pfd[i].revents & (POLLIN|POLLHUP|POLLERR)) != 0 &&
crypto/openssh/ssh-agent.c
2093
if ((pfd[i].revents & (POLLOUT|POLLHUP)) != 0 &&
crypto/openssh/ssh-agent.c
2146
pfd[j].revents = 0;
crypto/openssh/ssh-agent.c
2152
pfd[j].revents = 0;
crypto/openssh/ssh-keyscan.c
589
if (read_wait[i].revents & (POLLHUP|POLLERR|POLLNVAL))
crypto/openssh/ssh-keyscan.c
591
else if (read_wait[i].revents & (POLLIN))
crypto/openssh/ssh-pkcs11-helper.c
409
if ((pfd[0].revents & (POLLIN|POLLHUP|POLLERR)) != 0) {
crypto/openssh/ssh-pkcs11-helper.c
421
if ((pfd[1].revents & (POLLOUT|POLLHUP)) != 0) {
crypto/openssh/sshd.c
1051
!(pfd[startup_pollfd[i]].revents & POLLOUT))
crypto/openssh/sshd.c
1095
!(pfd[startup_pollfd[i]].revents & (POLLIN|POLLHUP)))
crypto/openssh/sshd.c
1149
if (!(pfd[i].revents & POLLIN))
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
483
item->revents = UINT64_MAX; /* TODO adjust to the event we need process */
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
520
if (item->revents == SSL_POLL_EVENT_NONE)
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
527
if (item->revents & SSL_POLL_EVENT_IC) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
576
if ((item->revents & SSL_POLL_EVENT_ISB) || (item->revents & SSL_POLL_EVENT_ISU)) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
615
if (item->revents & SSL_POLL_EVENT_ISB)
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
617
if (item->revents & SSL_POLL_EVENT_ISU)
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
620
if (item->revents & SSL_POLL_EVENT_OSB) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
626
if (item->revents & SSL_POLL_EVENT_OSU) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
643
if (item->revents & SSL_POLL_EVENT_EC) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
655
if (item->revents & SSL_POLL_EVENT_ECD) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
663
if (item->revents & SSL_POLL_EVENT_R) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
699
if (item->revents & SSL_POLL_EVENT_ER) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
714
if (item->revents & SSL_POLL_EVENT_W) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
718
if (item->revents & SSL_POLL_EVENT_EW) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
734
if (item->revents != processed_event) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
740
(unsigned long long)item->revents, SSL_POLL_EVENT_W,
crypto/openssl/doc/designs/ddd/ddd-05-mem-nonblocking.c
317
if (pfd.revents & POLLIN) {
crypto/openssl/doc/designs/ddd/ddd-05-mem-nonblocking.c
340
if (pfd.revents & POLLOUT) {
crypto/openssl/include/internal/quic_ssl.h
178
uint64_t *revents);
crypto/openssl/include/openssl/ssl.h
2572
uint64_t events, revents;
crypto/openssl/ssl/quic/quic_impl.c
5256
uint64_t revents = 0;
crypto/openssl/ssl/quic/quic_impl.c
5266
revents |= SSL_POLL_EVENT_W;
crypto/openssl/ssl/quic/quic_impl.c
5278
revents |= SSL_POLL_EVENT_R;
crypto/openssl/ssl/quic/quic_impl.c
5282
revents |= SSL_POLL_EVENT_ER;
crypto/openssl/ssl/quic/quic_impl.c
5286
revents |= SSL_POLL_EVENT_W;
crypto/openssl/ssl/quic/quic_impl.c
5290
revents |= SSL_POLL_EVENT_EW;
crypto/openssl/ssl/quic/quic_impl.c
5296
revents |= SSL_POLL_EVENT_EC;
crypto/openssl/ssl/quic/quic_impl.c
5300
revents |= SSL_POLL_EVENT_ECD;
crypto/openssl/ssl/quic/quic_impl.c
5304
revents |= SSL_POLL_EVENT_ISB;
crypto/openssl/ssl/quic/quic_impl.c
5308
revents |= SSL_POLL_EVENT_ISU;
crypto/openssl/ssl/quic/quic_impl.c
5312
revents |= SSL_POLL_EVENT_OSB;
crypto/openssl/ssl/quic/quic_impl.c
5316
revents |= SSL_POLL_EVENT_OSU;
crypto/openssl/ssl/quic/quic_impl.c
5322
revents |= SSL_POLL_EVENT_EL;
crypto/openssl/ssl/quic/quic_impl.c
5326
revents |= SSL_POLL_EVENT_IC;
crypto/openssl/ssl/quic/quic_impl.c
5331
*p_revents = revents;
crypto/openssl/ssl/rio/poll_immediate.c
124
uint64_t revents = 0;
crypto/openssl/ssl/rio/poll_immediate.c
140
if (!ossl_quic_conn_poll_events(ssl, events, /*do_tick = */ 0, &revents)) {
crypto/openssl/ssl/rio/poll_immediate.c
145
if (revents != 0) {
crypto/openssl/ssl/rio/poll_immediate.c
353
uint64_t revents;
crypto/openssl/ssl/rio/poll_immediate.c
36
ITEM_N(items, stride, j).revents = 0; \
crypto/openssl/ssl/rio/poll_immediate.c
360
revents = 0;
crypto/openssl/ssl/rio/poll_immediate.c
374
if (!ossl_quic_conn_poll_events(ssl, events, do_tick, &revents))
crypto/openssl/ssl/rio/poll_immediate.c
378
if (revents != 0)
crypto/openssl/ssl/rio/poll_immediate.c
404
item->revents = revents;
crypto/openssl/ssl/rio/poll_immediate.c
46
ITEM_N(items, stride, idx_).revents = SSL_POLL_EVENT_F; \
crypto/openssl/test/quic-openssl-docker/hq-interop/quic-hq-interop.c
646
poll_list[poll_idx].revents = 0;
crypto/openssl/test/quic-openssl-docker/hq-interop/quic-hq-interop.c
950
if (poll_list[poll_idx].revents == SSL_POLL_EVENT_R) {
crypto/openssl/test/quic-openssl-docker/hq-interop/quic-hq-interop.c
957
poll_list[poll_idx].revents = 0;
crypto/openssl/test/quic_multistream_test.c
5585
item->revents = UINT64_MAX;
crypto/openssl/test/quic_multistream_test.c
5590
item->revents = UINT64_MAX;
crypto/openssl/test/quic_multistream_test.c
5595
item->revents = UINT64_MAX;
crypto/openssl/test/quic_multistream_test.c
5600
item->revents = UINT64_MAX;
crypto/openssl/test/quic_multistream_test.c
5605
item->revents = UINT64_MAX;
crypto/openssl/test/quic_multistream_test.c
5642
if (!TEST_uint64_t_eq(items[i].revents, expected_revents[i])) {
crypto/openssl/test/radix/quic_tests.c
103
items[i + 1].revents = 0;
crypto/openssl/test/radix/quic_tests.c
116
expected_items[0].revents = SSL_POLL_EVENT_OS;
crypto/openssl/test/radix/quic_tests.c
118
expected_items[1].revents = SSL_POLL_EVENT_R;
crypto/openssl/test/radix/quic_tests.c
122
expected_items[i + 1].revents |= SSL_POLL_EVENT_W;
crypto/openssl/test/radix/quic_tests.c
128
expected_items[1].revents = SSL_POLL_EVENT_R;
crypto/openssl/test/radix/quic_tests.c
137
expected_items[5].revents = SSL_POLL_EVENT_IC;
crypto/openssl/test/radix/quic_tests.c
155
if (!TEST_uint64_t_eq(items[i].revents, expected_items[i].revents))
crypto/openssl/test/radix/quic_tests.c
259
item.revents = 0;
crypto/openssl/test/radix/quic_tests.c
267
ok = (!!(item.revents & SSL_POLL_EVENT_W) == expect);
crypto/openssl/test/radix/quic_tests.c
98
items[0].revents = 0;
lib/libc/rpc/clnt_bcast.c
523
if (pfd[i].revents == 0)
lib/libc/rpc/clnt_bcast.c
525
else if (pfd[i].revents & POLLNVAL) {
lib/libc/rpc/svc.c
713
if (p->revents) {
lib/libc/rpc/svc.c
727
if (p->revents & POLLNVAL) {
lib/libc/rpc/svc_vc.c
477
pollfd.revents = 0;
lib/libc/rpc/svc_vc.c
489
} while ((pollfd.revents & POLLIN) == 0);
lib/libc/tests/stdtime/detect_tz_changes_test.c
251
if (fds[0].revents & POLLHUP) {
lib/libc/tests/stdtime/detect_tz_changes_test.c
281
if (fds[0].revents & POLLIN && olen < sizeof(obuf)) {
lib/libc/tests/stdtime/detect_tz_changes_test.c
315
if (fds[1].revents & POLLIN && elen < sizeof(ebuf)) {
lib/libc/tests/stdtime/detect_tz_changes_test.c
324
if (nfds > 2 && fds[2].revents & POLLHUP) {
lib/libdevdctl/consumer.cc
235
fds->revents = 0;
lib/libdevdctl/consumer.cc
242
if ((fds->revents & POLLERR) != 0)
lib/libdevdctl/consumer.cc
246
if ((fds->revents & POLLHUP) != 0)
lib/libdevdctl/consumer.cc
250
return ((fds->revents & POLLIN) != 0);
lib/libfetch/common.c
1364
pfd.revents = 0;
lib/libfetch/common.c
1460
while (fetchTimeout && pfd.revents == 0) {
lib/libfetch/common.c
1471
pfd.revents = 0;
lib/libnetgraph/msg.c
237
rfds.revents = 0;
lib/libpam/modules/pam_exec/pam_exec.c
375
if ((pfd[i].revents & POLLIN) == 0)
lib/libpam/modules/pam_exec/pam_exec.c
390
(pfd[nfds - 1].revents & POLLOUT) != 0) {
lib/libpam/modules/pam_exec/pam_exec.c
408
} while (pfd[0].revents == 0);
lib/libsys/recvmmsg.c
50
pfd[0].revents = 0;
lib/libsys/recvmmsg.c
56
if (pfd[0].revents & POLLNVAL) {
lib/libsys/recvmmsg.c
60
if ((pfd[0].revents & ev) == 0) {
lib/libusb/libusb10_hotplug.c
242
pfd.revents = 0;
lib/libusb/libusb10_io.c
129
fds[i].revents = 0;
lib/libusb/libusb10_io.c
164
if (fds[i].revents != 0) {
lib/libusb/libusb20.c
1102
pfd[0].revents = 0;
sbin/devd/devd.cc
999
(s > 0 && (pfd.revents & POLLHUP))) {
sbin/dhclient/dhclient.c
2879
if (nfds == 0 || !(pfd[0].revents & POLLIN))
sbin/dhclient/dispatch.c
212
fds[i].revents = 0;
sbin/dhclient/dispatch.c
241
if ((fds[i].revents & (POLLIN | POLLHUP))) {
sbin/dhclient/dispatch.c
242
fds[i].revents = 0;
share/examples/sound/poll.c
52
if (pfds[0].revents != 0) {
sys/cam/scsi/scsi_pass.c
2109
int revents;
sys/cam/scsi/scsi_pass.c
2114
revents = poll_events & (POLLOUT | POLLWRNORM);
sys/cam/scsi/scsi_pass.c
2119
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/cam/scsi/scsi_pass.c
2122
if (revents == 0)
sys/cam/scsi/scsi_pass.c
2126
return (revents);
sys/cam/scsi/scsi_target.c
297
int revents;
sys/cam/scsi/scsi_target.c
302
revents = poll_events & (POLLOUT | POLLWRNORM);
sys/cam/scsi/scsi_target.c
308
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/cam/scsi/scsi_target.c
312
if (revents == 0)
sys/cam/scsi/scsi_target.c
316
return (revents);
sys/compat/linux/linux_misc.c
2302
if (fds->revents != 0) {
sys/compat/linux/linux_misc.c
2303
bsd_to_linux_poll_events(fds->revents,
sys/compat/linux/linux_misc.c
2304
&fds->revents);
sys/compat/linux/linux_misc.c
2307
error = copyout(&fds->revents, &ufds->revents,
sys/compat/linux/linux_misc.c
2308
sizeof(ufds->revents));
sys/compat/linuxkpi/common/src/linux_compat.c
1517
int revents;
sys/compat/linuxkpi/common/src/linux_compat.c
1524
revents = OPW(file, td, fop->poll(filp,
sys/compat/linuxkpi/common/src/linux_compat.c
1527
revents = 0;
sys/compat/linuxkpi/common/src/linux_compat.c
1530
return (revents);
sys/dev/aac/aac.c
2913
int revents;
sys/dev/aac/aac.c
2916
revents = 0;
sys/dev/aac/aac.c
2922
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/dev/aac/aac.c
2929
if (revents == 0) {
sys/dev/aac/aac.c
2934
return (revents);
sys/dev/aacraid/aacraid.c
2717
int revents;
sys/dev/aacraid/aacraid.c
2720
revents = 0;
sys/dev/aacraid/aacraid.c
2726
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/dev/aacraid/aacraid.c
2733
if (revents == 0) {
sys/dev/aacraid/aacraid.c
2738
return (revents);
sys/dev/atkbdc/psm.c
5268
int revents = 0;
sys/dev/atkbdc/psm.c
5274
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/atkbdc/psm.c
5280
return (revents);
sys/dev/cyapa/cyapa.c
1154
int revents;
sys/dev/cyapa/cyapa.c
1157
revents = 0;
sys/dev/cyapa/cyapa.c
1162
revents = events & (POLLIN | POLLRDNORM);
sys/dev/cyapa/cyapa.c
1170
return (revents);
sys/dev/drm2/drm_fops.c
554
int error, revents;
sys/dev/drm2/drm_fops.c
564
revents = 0;
sys/dev/drm2/drm_fops.c
571
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/drm2/drm_fops.c
572
CTR1(KTR_DRM, "drm_poll revents %x", revents);
sys/dev/drm2/drm_fops.c
576
return (revents);
sys/dev/evdev/cdev.c
311
int revents = 0;
sys/dev/evdev/cdev.c
325
revents = events & (POLLIN | POLLRDNORM);
sys/dev/evdev/cdev.c
333
return (revents);
sys/dev/evdev/uinput.c
378
int revents = 0;
sys/dev/evdev/uinput.c
387
revents |= (events & (POLLOUT | POLLWRNORM));
sys/dev/evdev/uinput.c
392
revents = events & (POLLIN | POLLRDNORM);
sys/dev/evdev/uinput.c
400
return (revents);
sys/dev/firewire/fwdev.c
823
int revents;
sys/dev/firewire/fwdev.c
830
revents = 0;
sys/dev/firewire/fwdev.c
834
revents |= tmp;
sys/dev/firewire/fwdev.c
841
revents |= tmp;
sys/dev/firewire/fwdev.c
844
return revents;
sys/dev/gpio/gpioc.c
1001
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/gpio/gpioc.c
1006
return (revents);
sys/dev/gpio/gpioc.c
984
int revents;
sys/dev/gpio/gpioc.c
986
revents = 0;
sys/dev/gpio/gpioc.c
990
revents = POLLERR;
sys/dev/gpio/gpioc.c
991
return (revents);
sys/dev/gpio/gpioc.c
995
revents = POLLHUP;
sys/dev/gpio/gpioc.c
996
return (revents);
sys/dev/hid/hidraw.c
950
int revents = 0;
sys/dev/hid/hidraw.c
957
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/hid/hidraw.c
961
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/hid/hidraw.c
969
return (revents);
sys/dev/hid/u2f.c
479
int revents = 0;
sys/dev/hid/u2f.c
486
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/hid/u2f.c
490
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/hid/u2f.c
501
return (revents);
sys/dev/hyperv/utilities/hv_kvp.c
822
int revents = 0;
sys/dev/hyperv/utilities/hv_kvp.c
833
revents = POLLIN;
sys/dev/hyperv/utilities/hv_kvp.c
839
return (revents);
sys/dev/ipmi/ipmi.c
159
int revents = 0;
sys/dev/ipmi/ipmi.c
168
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/dev/ipmi/ipmi.c
170
revents |= POLLERR;
sys/dev/ipmi/ipmi.c
173
if (revents == 0) {
sys/dev/ipmi/ipmi.c
179
return (revents);
sys/dev/kbd/kbd.c
656
int revents;
sys/dev/kbd/kbd.c
659
revents = 0;
sys/dev/kbd/kbd.c
663
revents = POLLHUP; /* the keyboard has gone */
sys/dev/kbd/kbd.c
666
revents = events & (POLLIN | POLLRDNORM);
sys/dev/kbd/kbd.c
670
return (revents);
sys/dev/mfi/mfi.c
3661
int revents = 0;
sys/dev/mfi/mfi.c
3667
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/dev/mfi/mfi.c
3671
revents |= POLLERR;
sys/dev/mfi/mfi.c
3675
if (revents == 0) {
sys/dev/mfi/mfi.c
3682
return revents;
sys/dev/mpi3mr/mpi3mr_app.c
137
int revents = 0;
sys/dev/mpi3mr/mpi3mr_app.c
143
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/dev/mpi3mr/mpi3mr_app.c
145
if (revents == 0) {
sys/dev/mpi3mr/mpi3mr_app.c
151
return revents;
sys/dev/mrsas/mrsas.c
1539
int revents = 0;
sys/dev/mrsas/mrsas.c
1545
revents |= poll_events & (POLLIN | POLLRDNORM);
sys/dev/mrsas/mrsas.c
1548
if (revents == 0) {
sys/dev/mrsas/mrsas.c
1556
return revents;
sys/dev/netmap/netmap.c
3659
u_int i, want[NR_TXRX], revents = 0;
sys/dev/netmap/netmap.c
3733
revents |= want[t];
sys/dev/netmap/netmap.c
3756
revents |= want_rx;
sys/dev/netmap/netmap.c
3797
if (nm_kr_tryget(kring, 1, &revents))
sys/dev/netmap/netmap.c
3802
revents |= POLLERR;
sys/dev/netmap/netmap.c
3805
revents |= POLLERR;
sys/dev/netmap/netmap.c
3819
revents |= want_tx;
sys/dev/netmap/netmap.c
3850
if (unlikely(nm_kr_tryget(kring, 1, &revents)))
sys/dev/netmap/netmap.c
3855
revents |= POLLERR;
sys/dev/netmap/netmap.c
3872
revents |= POLLERR;
sys/dev/netmap/netmap.c
3880
revents |= want_rx;
sys/dev/netmap/netmap.c
3912
return (revents);
sys/dev/netmap/netmap_freebsd.c
1382
int revents;
sys/dev/netmap/netmap_freebsd.c
1393
revents = netmap_poll(priv, events, /*thread=*/NULL);
sys/dev/netmap/netmap_freebsd.c
1395
return (events & revents) ? 1 : 0;
sys/dev/snp/snp.c
319
int revents;
sys/dev/snp/snp.c
325
revents = 0;
sys/dev/snp/snp.c
332
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/snp/snp.c
337
if (revents == 0)
sys/dev/snp/snp.c
340
return (revents);
sys/dev/sound/midi/midi.c
496
int revents;
sys/dev/sound/midi/midi.c
501
revents = 0;
sys/dev/sound/midi/midi.c
507
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/sound/midi/midi.c
513
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/sound/midi/midi.c
520
return (revents);
sys/dev/tcp_log/tcp_log_dev.c
402
int revents;
sys/dev/tcp_log/tcp_log_dev.c
412
revents = 0;
sys/dev/tcp_log/tcp_log_dev.c
424
revents = events & (POLLIN | POLLRDNORM);
sys/dev/tcp_log/tcp_log_dev.c
434
revents = events;
sys/dev/tcp_log/tcp_log_dev.c
436
return (revents);
sys/dev/usb/usb_dev.c
1302
int fflags, revents;
sys/dev/usb/usb_dev.c
1312
revents = 0;
sys/dev/usb/usb_dev.c
1343
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/usb/usb_dev.c
1381
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/usb/usb_dev.c
1395
return (revents);
sys/dev/vkbd/vkbd.c
448
int revents = 0;
sys/dev/vkbd/vkbd.c
459
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/vkbd/vkbd.c
466
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/vkbd/vkbd.c
473
return (revents);
sys/dev/vt/vt_sysmouse.c
472
int revents = 0;
sys/dev/vt/vt_sysmouse.c
477
revents = events & (POLLIN|POLLRDNORM);
sys/dev/vt/vt_sysmouse.c
483
return (revents);
sys/fs/cuse/cuse.c
1880
int revents;
sys/fs/cuse/cuse.c
1918
revents = 0;
sys/fs/cuse/cuse.c
1920
revents |= (events & (POLLPRI | POLLIN | POLLRDNORM));
sys/fs/cuse/cuse.c
1922
revents |= (events & (POLLOUT | POLLWRNORM));
sys/fs/cuse/cuse.c
1924
revents |= (events & POLLHUP);
sys/fs/cuse/cuse.c
1926
return (revents);
sys/fs/fuse/fuse_device.c
282
int error, revents = 0;
sys/fs/fuse/fuse_device.c
292
revents |= events & (POLLIN | POLLRDNORM);
sys/fs/fuse/fuse_device.c
298
revents |= events & (POLLOUT | POLLWRNORM);
sys/fs/fuse/fuse_device.c
300
return (revents);
sys/fs/fuse/fuse_kernel.h
849
uint32_t revents;
sys/kern/kern_devctl.c
319
int revents = 0;
sys/kern/kern_devctl.c
324
revents = events & (POLLIN | POLLRDNORM);
sys/kern/kern_devctl.c
330
return (revents);
sys/kern/kern_event.c
2363
int revents = 0;
sys/kern/kern_event.c
2372
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/kern_event.c
2381
return (revents);
sys/kern/kern_jaildesc.c
307
int revents;
sys/kern/kern_jaildesc.c
309
revents = 0;
sys/kern/kern_jaildesc.c
313
revents |= POLLHUP;
sys/kern/kern_jaildesc.c
314
if (revents == 0) {
sys/kern/kern_jaildesc.c
319
return (revents);
sys/kern/subr_log.c
181
int revents = 0;
sys/kern/subr_log.c
186
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/subr_log.c
191
return (revents);
sys/kern/sys_eventfd.c
280
int revents;
sys/kern/sys_eventfd.c
283
revents = 0;
sys/kern/sys_eventfd.c
286
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/sys_eventfd.c
289
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/sys_eventfd.c
290
if (revents == 0)
sys/kern/sys_eventfd.c
294
return (revents);
sys/kern/sys_generic.c
1727
fd->revents = POLLNVAL;
sys/kern/sys_generic.c
1735
fd->revents = fo_poll(fp, fd->events, td->td_ucred, td);
sys/kern/sys_generic.c
1740
if (fd->revents != 0)
sys/kern/sys_generic.c
1756
error = copyout(&fds->revents, &ufds->revents,
sys/kern/sys_generic.c
1757
sizeof(ufds->revents));
sys/kern/sys_generic.c
1760
if (fds->revents != 0)
sys/kern/sys_generic.c
1782
fds->revents = 0;
sys/kern/sys_generic.c
1790
fds->revents = POLLNVAL;
sys/kern/sys_generic.c
1799
fds->revents = fo_poll(fp, fds->events,
sys/kern/sys_generic.c
1809
if ((fds->revents & POLLHUP) != 0)
sys/kern/sys_generic.c
1810
fds->revents &= ~POLLOUT;
sys/kern/sys_generic.c
1812
if (fds->revents != 0)
sys/kern/sys_pipe.c
1503
int levents, revents;
sys/kern/sys_pipe.c
1508
revents = 0;
sys/kern/sys_pipe.c
1519
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/sys_pipe.c
1527
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/sys_pipe.c
1538
revents |= (events & (POLLIN | POLLRDNORM));
sys/kern/sys_pipe.c
1541
revents |= POLLHUP;
sys/kern/sys_pipe.c
1545
if (revents == 0) {
sys/kern/sys_pipe.c
1568
return (revents);
sys/kern/sys_procdesc.c
434
int revents;
sys/kern/sys_procdesc.c
436
revents = 0;
sys/kern/sys_procdesc.c
440
revents |= POLLHUP;
sys/kern/sys_procdesc.c
441
if (revents == 0) {
sys/kern/sys_procdesc.c
446
return (revents);
sys/kern/sys_timerfd.c
263
int revents = 0;
sys/kern/sys_timerfd.c
268
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/sys_timerfd.c
269
if (revents == 0)
sys/kern/sys_timerfd.c
273
return (revents);
sys/kern/tty.c
650
int error, revents = 0;
sys/kern/tty.c
659
revents |= events & (POLLIN|POLLRDNORM);
sys/kern/tty.c
664
revents |= POLLHUP;
sys/kern/tty.c
668
revents |= events & (POLLOUT|POLLWRNORM);
sys/kern/tty.c
671
if (revents == 0) {
sys/kern/tty.c
680
return (revents);
sys/kern/tty_pts.c
389
int revents = 0;
sys/kern/tty_pts.c
403
revents |= events & (POLLIN|POLLRDNORM);
sys/kern/tty_pts.c
408
revents |= events & (POLLOUT|POLLWRNORM);
sys/kern/tty_pts.c
417
if (revents == 0) {
sys/kern/tty_pts.c
431
return (revents);
sys/kern/uipc_mqueue.c
2501
int revents = 0;
sys/kern/uipc_mqueue.c
2506
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/uipc_mqueue.c
2514
revents |= POLLOUT;
sys/kern/uipc_mqueue.c
2521
return (revents);
sys/kern/uipc_socket.c
4476
int revents;
sys/kern/uipc_socket.c
4481
revents = 0;
sys/kern/uipc_socket.c
4483
revents = events & (POLLIN | POLLRDNORM);
sys/kern/uipc_socket.c
4485
revents = (events & (POLLIN | POLLRDNORM)) | POLLHUP;
sys/kern/uipc_socket.c
4488
revents = 0;
sys/kern/uipc_socket.c
4491
revents = 0;
sys/kern/uipc_socket.c
4496
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/uipc_socket.c
4499
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/uipc_socket.c
4503
revents |= events & (POLLPRI | POLLRDBAND);
sys/kern/uipc_socket.c
4506
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/uipc_socket.c
4508
revents |= POLLHUP;
sys/kern/uipc_socket.c
4512
revents |= events & POLLRDHUP;
sys/kern/uipc_socket.c
4513
if (revents == 0) {
sys/kern/uipc_socket.c
4528
return (revents);
sys/kern/uipc_usrreq.c
1686
int revents;
sys/kern/uipc_usrreq.c
1695
revents = 0;
sys/kern/uipc_usrreq.c
1697
revents = events & (POLLIN | POLLRDNORM);
sys/kern/uipc_usrreq.c
1699
revents = (events & (POLLIN | POLLRDNORM)) | POLLHUP;
sys/kern/uipc_usrreq.c
1702
revents = 0;
sys/kern/uipc_usrreq.c
1707
revents = POLLHUP;
sys/kern/uipc_usrreq.c
1709
revents = 0;
sys/kern/uipc_usrreq.c
1714
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/uipc_usrreq.c
1716
revents |= events &
sys/kern/uipc_usrreq.c
1718
if (!(revents & (POLLIN | POLLRDNORM | POLLRDHUP))) {
sys/kern/uipc_usrreq.c
1732
revents |= events &
sys/kern/uipc_usrreq.c
1735
revents |= POLLHUP;
sys/kern/uipc_usrreq.c
1736
if (!(revents & (POLLOUT | POLLWRNORM))) {
sys/kern/uipc_usrreq.c
1746
return (revents);
sys/kern/vfs_inotify.c
297
int revents;
sys/kern/vfs_inotify.c
300
revents = 0;
sys/kern/vfs_inotify.c
304
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/vfs_inotify.c
308
return (revents);
sys/net/bpf.c
2005
int revents;
sys/net/bpf.c
2014
revents = events & (POLLOUT | POLLWRNORM);
sys/net/bpf.c
2019
revents |= events & (POLLIN | POLLRDNORM);
sys/net/bpf.c
2031
return (revents);
sys/net/if_tuntap.c
2086
int revents = 0;
sys/net/if_tuntap.c
2094
revents |= events & (POLLIN | POLLRDNORM);
sys/net/if_tuntap.c
2101
revents |= events & (POLLOUT | POLLWRNORM);
sys/net/if_tuntap.c
2103
return (revents);
sys/net/netmap_legacy.h
231
int revents;
sys/net/netmap_user.h
572
if ((prd.revents == POLLERR) || (prd.revents == STATUS_TIMEOUT)) {
sys/netgraph/ng_device.c
607
int revents = 0;
sys/netgraph/ng_device.c
611
revents |= events & (POLLIN | POLLRDNORM);
sys/netgraph/ng_device.c
613
return (revents);
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
442
int revents;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
447
revents = 0;
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
457
revents |= events & (POLLIN | POLLRDNORM);
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
462
revents |= events & (POLLIN | POLLRDNORM);
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
466
revents |= events & (POLLIN | POLLRDNORM);
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
468
revents |= events & (POLLOUT | POLLWRNORM);
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
476
if ((revents == 0) && ((events & (POLLIN|POLLRDNORM)) != 0))
sys/netpfil/ipfilter/netinet/mlfk_ipl.c
480
return (revents);
sys/security/audit/audit_pipe.c
984
int error, revents;
sys/security/audit/audit_pipe.c
986
revents = 0;
sys/security/audit/audit_pipe.c
993
revents |= events & (POLLIN | POLLRDNORM);
sys/security/audit/audit_pipe.c
998
return (revents);
sys/sys/poll.h
48
short revents; /* events found on return */
sys/x86/acpica/acpi_apm.c
392
int revents;
sys/x86/acpica/acpi_apm.c
394
revents = 0;
sys/x86/acpica/acpi_apm.c
398
revents |= events & (POLLIN | POLLRDNORM);
sys/x86/acpica/acpi_apm.c
402
return (revents);
tests/sys/audit/utils.c
167
if (fd[0].revents & POLLIN) {
tests/sys/audit/utils.c
172
"unknown event %#x", fd[0].revents);
tests/sys/capsicum/capability-fd.cc
549
pollfd.revents = 0;
tests/sys/capsicum/capability-fd.cc
554
EXPECT_NE(0, (pollfd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
173
poll_fd.revents = 0;
tests/sys/capsicum/linux.cc
177
EXPECT_EQ(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
178
EXPECT_NE(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
182
EXPECT_NE(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
183
EXPECT_EQ(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
224
poll_fd.revents = 0;
tests/sys/capsicum/linux.cc
228
EXPECT_EQ(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
229
EXPECT_NE(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
233
EXPECT_NE(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
234
EXPECT_EQ(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
463
poll_fd.revents = 0;
tests/sys/capsicum/linux.cc
467
EXPECT_EQ(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
468
EXPECT_NE(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
472
EXPECT_EQ(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
473
EXPECT_NE(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
477
EXPECT_NE(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
478
EXPECT_EQ(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
76
poll_fd.revents = 0;
tests/sys/capsicum/linux.cc
85
EXPECT_EQ(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
86
EXPECT_NE(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/linux.cc
91
EXPECT_NE(0, (poll_fd.revents & POLLIN));
tests/sys/capsicum/linux.cc
92
EXPECT_EQ(0, (poll_fd.revents & POLLNVAL));
tests/sys/capsicum/procdesc.cc
359
fdp.revents = 0;
tests/sys/capsicum/procdesc.cc
366
EXPECT_TRUE(fdp.revents & POLLHUP);
tests/sys/capsicum/procdesc.cc
369
fdp.revents = 0;
tests/sys/capsicum/procdesc.cc
371
EXPECT_TRUE(fdp.revents & POLLHUP);
tests/sys/capsicum/procdesc.cc
411
fdp.revents = 0;
tests/sys/capsicum/procdesc.cc
427
EXPECT_TRUE(fdp.revents & POLLHUP);
tests/sys/capsicum/select.cc
128
EXPECT_NE(0, (cap_fd[kCapCount + 1].revents & POLLNVAL));
tests/sys/capsicum/select.cc
137
EXPECT_NE(0, (cap_fd[kCapCount + 1].revents & POLLNVAL));
tests/sys/fifo/fifo_io.c
869
fds[0].revents = 0;
tests/sys/fifo/fifo_io.c
875
*readable = (fds[0].revents & POLLIN) ? 1 : 0;
tests/sys/fifo/fifo_io.c
876
*writable = (fds[0].revents & POLLOUT) ? 1 : 0;
tests/sys/fifo/fifo_io.c
877
*exception = (fds[0].revents & POLLERR) ? 1 : 0;
tests/sys/file/path_test.c
504
pollfd.revents = 0;
tests/sys/file/path_test.c
506
ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x",
tests/sys/file/path_test.c
507
pollfd.revents);
tests/sys/file/path_test.c
509
pollfd.revents = 0;
tests/sys/file/path_test.c
511
ATF_REQUIRE_MSG(pollfd.revents == POLLNVAL, "unexpected revents %x",
tests/sys/file/path_test.c
512
pollfd.revents);
tests/sys/fs/fusefs/mockfs.cc
1051
ASSERT_TRUE(fds[0].revents & POLLOUT);
tests/sys/fs/fusefs/mockfs.cc
979
ASSERT_TRUE(fds[0].revents & POLLIN);
tests/sys/kern/ktls_test.c
209
pfd.revents = 0;
tests/sys/kern/ktls_test.c
211
ATF_REQUIRE_INTEQ(POLLOUT, pfd.revents);
tests/sys/kern/listener_wakeup.c
169
.revents = 0,
tests/sys/kern/unix_stream.c
155
ATF_REQUIRE((pfd[0].revents & ctx->poll_revents) == ctx->poll_revents);
tests/sys/netinet/socket_afinet.c
140
ATF_CHECK_EQ(POLLOUT, pfd.revents);
tests/sys/netinet/socket_afinet.c
155
ATF_CHECK_EQ(POLLIN, pfd.revents);
tests/sys/netinet/socket_afinet.c
204
ATF_CHECK_EQ(POLLOUT, pfd.revents);
tests/sys/netinet/socket_afinet.c
217
ATF_CHECK_EQ(POLLIN | POLLOUT, pfd.revents);
tests/sys/netinet/socket_afinet.c
238
ATF_CHECK_EQ(POLLRDHUP, pfd.revents);
tests/sys/sound/polling.c
146
if (pfd[0].revents) {
tests/sys/sound/polling.c
151
if (pfd[1].revents) {
tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c
112
if (pfd[0].revents & POLLOUT) {
tools/regression/netinet/tcpfullwindowrst/tcpfullwindowrsttest.c
119
if (pfd[1].revents & POLLOUT) {
tools/regression/poll/pipepoll.c
106
report(num++, "0", 0, pfd.revents, res, 0);
tools/regression/poll/pipepoll.c
124
report(num++, "1", 0, pfd.revents, res, 0);
tools/regression/poll/pipepoll.c
132
report(num++, "2", POLLIN, pfd.revents, res, 1);
tools/regression/poll/pipepoll.c
137
report(num++, "2a", 0, pfd.revents, res, 0);
tools/regression/poll/pipepoll.c
145
report(num++, "3", POLLHUP, pfd.revents, res, 1);
tools/regression/poll/pipepoll.c
160
report(num++, "4", 0, pfd.revents, res, 0);
tools/regression/poll/pipepoll.c
168
report(num++, "5", POLLIN, pfd.revents, res, 1);
tools/regression/poll/pipepoll.c
186
report(num++, "6", POLLIN | POLLHUP, pfd.revents, res, 1);
tools/regression/poll/pipepoll.c
191
report(num++, "6a", POLLHUP, pfd.revents, res, 1);
tools/regression/poll/pipepoll.c
203
report(num++, "6b", POLLHUP, pfd.revents, res, 1);
tools/regression/poll/pipepoll.c
207
report(num++, "6c", POLLHUP, pfd.revents, res, 1);
tools/regression/poll/pipepoll.c
211
report(num++, "6d", POLLHUP, pfd.revents, res, 1);
tools/regression/poll/sockpoll.c
129
report(num++, "initial 0", POLLOUT, pfd0.revents);
tools/regression/poll/sockpoll.c
132
report(num++, "initial 1", POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
137
report(num++, "after large write", 0, pfd0.revents);
tools/regression/poll/sockpoll.c
140
report(num++, "other side after large write", POLLIN | POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
144
report(num++, "other side after close", POLLIN | POLLHUP, pfd1.revents);
tools/regression/poll/sockpoll.c
149
report(num++, "other side after reading input", POLLHUP, pfd1.revents);
tools/regression/poll/sockpoll.c
158
report(num++, "after shutdown(SHUT_WR)", POLLOUT, pfd0.revents);
tools/regression/poll/sockpoll.c
161
report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
173
report(num++, "other side after reading EOF", POLLIN | POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
178
report(num++, "after data from other side", POLLIN | POLLOUT, pfd0.revents);
tools/regression/poll/sockpoll.c
181
report(num++, "after writing", POLLIN, pfd1.revents);
tools/regression/poll/sockpoll.c
186
report(num++, "after second shutdown", POLLIN | POLLHUP, pfd0.revents);
tools/regression/poll/sockpoll.c
189
report(num++, "after second shutdown", POLLHUP, pfd1.revents);
tools/regression/poll/sockpoll.c
193
report(num++, "after close", POLLHUP, pfd1.revents);
tools/regression/poll/sockpoll.c
206
report(num++, "after shutdown(SHUT_RD)", POLLIN | POLLOUT, pfd0.revents);
tools/regression/poll/sockpoll.c
209
report(num++, "other side after shutdown(SHUT_RD)", POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
214
report(num++, "after shutdown(SHUT_WR)", POLLHUP, pfd0.revents);
tools/regression/poll/sockpoll.c
217
report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
228
report(num++, "other side after shutdown(SHUT_RD)", POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
233
report(num++, "other side after write", POLLIN | POLLOUT, pfd1.revents);
tools/regression/poll/sockpoll.c
238
report(num++, "other side after shutdown(SHUT_WR)", POLLIN | POLLOUT | POLLRDHUP, pfd1.revents);
tools/regression/security/cap_test/cap_test_capabilities.c
393
pollfd.revents = 0;
tools/regression/security/cap_test/cap_test_capabilities.c
397
CHECK((pollfd.revents & POLLNVAL) == 0);
tools/regression/security/cap_test/cap_test_capabilities.c
399
CHECK((pollfd.revents & POLLNVAL) != 0);
tools/regression/sockets/udp_pingpong/udp_pingpong.c
446
if(tcp->pfds[fdidx].revents != POLLIN) {
tools/test/gpioevents/gpioevents.c
261
fds.revents = 0;
tools/test/gpioevents/gpioevents.c
278
print_poll_events(fds.revents);
tools/test/gpioevents/gpioevents.c
280
if (fds.revents & (POLLHUP | POLLERR)) {
tools/tools/netmap/bridge.c
321
pollfd[0].revents = pollfd[1].revents = 0;
tools/tools/netmap/bridge.c
326
pollfd[1].revents = POLLOUT;
tools/tools/netmap/bridge.c
331
pollfd[0].revents = POLLOUT;
tools/tools/netmap/bridge.c
354
pollfd[0].revents,
tools/tools/netmap/bridge.c
359
pollfd[1].revents,
tools/tools/netmap/bridge.c
366
if (pollfd[0].revents & POLLERR) {
tools/tools/netmap/bridge.c
371
if (pollfd[1].revents & POLLERR) {
tools/tools/netmap/bridge.c
376
if (pollfd[0].revents & POLLOUT) {
tools/tools/netmap/bridge.c
383
if (pollfd[1].revents & POLLOUT) {
tools/tools/netmap/lb.c
915
pollfd[polli].revents = 0;
tools/tools/netmap/lb.c
921
pollfd[polli].revents = 0;
tools/tools/netmap/pkt-gen.c
1800
if (pfd.revents & POLLERR) {
tools/tools/netmap/pkt-gen.c
1943
if (i > 0 && !(pfd.revents & POLLERR))
tools/tools/netmap/pkt-gen.c
1949
if (pfd.revents & POLLERR) {
tools/tools/netmap/pkt-gen.c
1954
i, pfd.revents);
tools/tools/netmap/pkt-gen.c
1998
if (pfd.revents & POLLERR) {
tools/tools/netmap/pkt-gen.c
2121
if (pfd.revents & POLLERR) {
tools/tools/netmap/pkt-gen.c
2285
if (i > 0 && !(pfd.revents & POLLERR))
tools/tools/netmap/pkt-gen.c
2288
i, pfd.revents);
tools/tools/netmap/pkt-gen.c
2311
if (pfd.revents & POLLERR) {
tools/tools/netrate/netreceive/netreceive.c
111
if (!(fds.revents & POLLIN))
usr.bin/genl/genl.c
372
pfd.revents = 0;
usr.bin/kdump/kdump.c
2339
print_mask_arg0(sysdecode_pollfd_events, pfd->revents);
usr.bin/mail/tests/mailx_signal_test.c
107
if (fds[0].revents == POLLIN && olen < sizeof(obuf)) {
usr.bin/mail/tests/mailx_signal_test.c
112
if (fds[1].revents == POLLIN && elen < sizeof(ebuf)) {
usr.bin/talk/io.c
123
if (fds[1].revents & POLLIN) {
usr.bin/talk/io.c
134
if (fds[0].revents & POLLIN) {
usr.bin/whois/whois.c
398
fds[j].revents == 0)
usr.bin/whois/whois.c
400
if (fds[j].revents & ~(POLLIN | POLLOUT)) {
usr.bin/whois/whois.c
406
} else if (fds[j].revents & (POLLIN | POLLOUT)) {
usr.sbin/bhyve/slirp/slirp-helper.c
196
pollfd->revents = 0;
usr.sbin/bhyve/slirp/slirp-helper.c
216
short revents;
usr.sbin/bhyve/slirp/slirp-helper.c
225
revents = pollfd->revents;
usr.sbin/bhyve/slirp/slirp-helper.c
227
revents &= ~POLLHUP;
usr.sbin/bhyve/slirp/slirp-helper.c
228
return (pollev2slirpev(revents));
usr.sbin/bhyve/slirp/slirp-helper.c
270
if ((pollfds[wakeup].revents & POLLIN) != 0) {
usr.sbin/bhyve/slirp/slirp-helper.c
286
if ((pollfds[input].revents & (POLLHUP | POLLRDHUP)) != 0)
usr.sbin/bhyve/slirp/slirp-helper.c
288
if ((pollfds[input].revents & POLLIN) != 0) {
usr.sbin/ngctl/main.c
298
if (pfds[0].revents != 0)
usr.sbin/ngctl/main.c
300
if (pfds[1].revents != 0)
usr.sbin/ngctl/main.c
401
pfds[2].revents = 0;
usr.sbin/ngctl/main.c
405
if (pfds[2].revents == 0)
usr.sbin/ngctl/main.c
408
if (pfds[0].revents != 0)
usr.sbin/ngctl/main.c
410
if (pfds[1].revents != 0)
usr.sbin/ngctl/main.c
414
if (pfds[2].revents != 0) {
usr.sbin/route6d/route6d.c
500
if (set[0].revents & POLLIN)
usr.sbin/route6d/route6d.c
510
if (set[1].revents & POLLIN)
usr.sbin/rpcbind/rpcb_svc_com.c
1151
if (p->revents)
usr.sbin/rpcbind/rpcb_svc_com.c
1153
p->fd, p->revents);
usr.sbin/rpcbind/rpcb_svc_com.c
1190
if (pfds[j].revents) {
usr.sbin/rpcbind/rpcb_svc_com.c
1199
pfds[j].revents = 0;
usr.sbin/rtadvd/control.c
146
if (pfds[0].revents & POLLIN) {
usr.sbin/rtadvd/control.c
90
if (pfds[0].revents & POLLIN) {
usr.sbin/rtadvd/rtadvd.c
345
if (rtsock.si_fd != -1 && set[PFD_RTSOCK].revents & POLLIN)
usr.sbin/rtadvd/rtadvd.c
348
if (set[PFD_RAWSOCK].revents & POLLIN)
usr.sbin/rtadvd/rtadvd.c
351
if (set[PFD_CSOCK].revents & POLLIN) {
usr.sbin/traceroute6/traceroute6.c
1060
pfd[0].revents = 0;
usr.sbin/traceroute6/traceroute6.c
1063
pfd[0].revents & POLLIN)
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
273
pfd[0].revents = 0;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
277
pfd[1].revents = 0;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
281
pfd[2].revents = 0;
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
291
if (pfd[1].revents != 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
301
if (pfd[0].revents != 0) {
usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
338
if (pfd[2].revents != 0) {
usr.sbin/virtual_oss/virtual_oss/httpd.c
692
fds[c].revents = 0;
usr.sbin/virtual_oss/virtual_oss/httpd.c
700
if (fds[c].revents == 0)