Symbol: events
bin/date/netdate.c
142
ready.events = POLLIN;
games/boggle/boggle/timer.c
107
set[0].events = POLLIN;
games/hunt/hunt/playit.c
209
set[0].events = POLLIN;
games/hunt/hunt/playit.c
211
set[1].events = POLLIN;
games/hunt/hunt/server.c
285
set[0].events = POLLIN;
games/hunt/huntd/answer.c
208
fdset[i].events = POLLIN;
games/hunt/huntd/driver.c
478
fdset[0].events = POLLIN;
games/hunt/huntd/driver.c
480
fdset[1].events = POLLIN;
games/hunt/huntd/driver.c
483
fdset[2].events = 0;
games/hunt/huntd/driver.c
486
fdset[2].events = POLLIN;
games/tetris/input.c
90
set[0].events = POLLIN;
games/trek/dumpme.c
86
events(1);
games/trek/play.c
110
events(0);
games/trek/trek.h
422
int events(int);
lib/libc/gen/getpass.c
155
pfd.events = POLLIN|POLLRDNORM;
lib/libc/net/rcmd.c
295
reads[0].events = POLLIN;
lib/libc/net/rcmd.c
297
reads[1].events = POLLIN;
lib/libc/resolv/res_send.c
1009
pollfd.events = POLLRDNORM;
lib/libc/rpc/clnt_bcast.c
351
pfd[fdlistno].events = POLLIN | POLLPRI |
lib/libc/rpc/clnt_dg.c
285
cu->cu_pfdp.events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND;
lib/libc/rpc/clnt_vc.c
705
fd.events = POLLIN;
lib/libc/rpc/svc_fdset.c
175
pfd[i].events = POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND;
lib/libc/rpc/svc_vc.c
535
pollfd.events = POLLIN;
lib/libc/sys/epoll.c
50
epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout)
lib/libc/sys/epoll.c
52
return epoll_pwait(epfd, events, maxevents, timeout, NULL);
lib/libc/sys/epoll.c
56
epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout,
lib/libc/sys/epoll.c
68
return epoll_pwait2(epfd, events, maxevents, tsp, sigmask);
lib/libcurses/refresh.c
764
fds[0].events = POLLIN;
lib/libperfuse/ops.c
1939
perfuse_node_poll(struct puffs_usermount *pu, puffs_cookie_t opc, int *events)
lib/libperfuse/ops.c
1976
*events = fpo->revents;
lib/librumpclient/rumpclient.c
287
pfd[0].events = POLLIN;
lib/librumpclient/rumpclient.c
289
pfd[1].events = POLLIN;
lib/librumphijack/hijack.c
2047
pfds[j].events |= POLLIN;
lib/librumphijack/hijack.c
2052
pfds[j].events |= POLLOUT;
lib/librumphijack/hijack.c
2057
pfds[j].events |= POLLHUP|POLLERR;
lib/librumphijack/hijack.c
2261
pfd_rump[i].events = fds[i].events;
lib/librumphijack/hijack.c
2271
pfd_host[i].events = fds[i].events;
lib/librumphijack/hijack.c
2280
pfd_host[nfds].events = POLLIN;
lib/librumphijack/hijack.c
2282
pfd_rump[nfds].events = POLLIN;
lib/librumpuser/rumpuser_sp.c
1190
pfdlist[idx].events = POLLIN;
lib/librumpuser/rumpuser_sp.c
1198
pfdlist[0].events = POLLIN;
lib/librumpuser/sp_common.c
318
pfd.events = POLLOUT;
libexec/ftpd/ftpd.c
565
fds[n].events = POLLIN;
libexec/getty/subr.c
693
set[0].events = POLLIN;
libexec/httpd/daemon-bozo.c
165
httpd->fds[i].events = POLLIN | POLLPRI | POLLRDNORM |
libexec/identd/identd.c
276
rfds[i].events = POLLIN;
libexec/rexecd/rexecd.c
285
fds[0].events = fds[1].events = POLLIN;
libexec/rexecd/rexecd.c
297
fds[0].events = 0;
libexec/rexecd/rexecd.c
305
fds[1].events = 0;
libexec/rexecd/rexecd.c
309
} while ((fds[0].events | fds[1].events) & POLLIN);
libexec/rlogind/rlogind.c
468
set[0].events = POLLPRI;
libexec/rlogind/rlogind.c
469
set[1].events = 0;
libexec/rlogind/rlogind.c
471
set[0].events |= POLLOUT;
libexec/rlogind/rlogind.c
473
set[1].events |= POLLIN;
libexec/rlogind/rlogind.c
476
set[1].events |= POLLOUT;
libexec/rlogind/rlogind.c
478
set[0].events |= POLLIN;
libexec/rshd/rshd.c
574
set[0].events = POLLIN;
libexec/rshd/rshd.c
576
set[1].events = POLLIN;
libexec/rshd/rshd.c
588
set[0].events = 0;
libexec/rshd/rshd.c
597
set[1].events = 0;
libexec/telnetd/telnetd.c
961
set[0].events = 0;
libexec/telnetd/telnetd.c
962
set[1].events = 0;
libexec/telnetd/telnetd.c
964
set[0].events |= POLLOUT;
libexec/telnetd/telnetd.c
966
set[1].events |= POLLIN;
libexec/telnetd/telnetd.c
968
set[1].events |= POLLOUT;
libexec/telnetd/telnetd.c
970
set[0].events |= POLLIN;
libexec/telnetd/telnetd.c
972
set[0].events |= POLLPRI;
libexec/telnetd/utility.c
99
set[0].events = POLLPRI;
sbin/mount_portal/puffs_portal.c
786
portal_node_poll(struct puffs_usermount *pu, puffs_cookie_t opc, int *events)
sbin/mount_portal/puffs_portal.c
793
if (*events & POLLIN)
sbin/mount_portal/puffs_portal.c
795
if (*events & POLLOUT)
sbin/mount_portal/puffs_portal.c
797
if (*events & POLLERR)
sbin/mount_portal/puffs_portal.c
801
*events = POLLERR;
sbin/mount_portal/puffs_portal.c
805
*events = 0;
sbin/mount_portal/puffs_portal.c
807
*events |= POLLIN;
sbin/mount_portal/puffs_portal.c
809
*events |= POLLOUT;
sbin/mount_portal/puffs_portal.c
811
*events |= POLLERR;
sbin/ping/ping.c
789
fdmaskp[0].events = POLLIN;
sbin/ping6/ping6.c
976
fdmaskp[0].events = POLLIN;
sys/arch/aarch64/include/cpu.h
113
struct evcnt events;
sys/arch/alpha/alpha/pmap.c
626
struct evcnt events;
sys/arch/alpha/alpha/pmap.c
629
#define tlb_evcnt tlb_shootdown.events
sys/arch/alpha/alpha/promcons.c
183
prompoll(dev_t dev, int events, struct lwp *l)
sys/arch/alpha/alpha/promcons.c
187
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/amiga/dev/event.c
147
ev_poll(register struct evvar *ev, int events, struct lwp *l)
sys/arch/amiga/dev/event.c
152
if (events & (POLLIN | POLLRDNORM))
sys/arch/amiga/dev/event.c
155
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/amiga/dev/event.c
157
if (events & (POLLIN | POLLRDNORM))
sys/arch/amiga/dev/ite.c
514
itepoll(dev_t dev, int events, struct lwp *l)
sys/arch/amiga/dev/ite.c
521
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/amiga/dev/kbd.c
535
kbdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/amiga/dev/kbd.c
537
return ev_poll (&kbd_softc.k_events, events, l);
sys/arch/amiga/dev/mfc.c
649
mfcspoll(dev_t dev, int events, struct lwp *l)
sys/arch/amiga/dev/mfc.c
656
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/amiga/dev/ms.c
526
mspoll(dev_t dev, int events, struct lwp *l)
sys/arch/amiga/dev/ms.c
532
return(ev_poll(&ms->ms_events, events, l));
sys/arch/amiga/dev/msc.c
546
mscpoll(dev_t dev, int events, struct lwp *l)
sys/arch/amiga/dev/msc.c
555
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/amiga/dev/ser.c
457
serpoll(dev_t dev, int events, struct lwp *l)
sys/arch/amiga/dev/ser.c
461
return ser_tty->t_linesw->l_poll(ser_tty, events, l);
sys/arch/arc/dev/opms.c
438
opmspoll(dev_t dev, int events, struct lwp *l)
sys/arch/arc/dev/opms.c
444
if (events & (POLLIN | POLLRDNORM)) {
sys/arch/arc/dev/opms.c
446
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/arc/dev/pccons.c
675
pcpoll(dev_t dev, int events, struct lwp *l)
sys/arch/arc/dev/pccons.c
680
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arm/acpi/cpu_acpi.c
283
evcnt_attach_dynamic(&ci->ci_lpi[ci->ci_nlpi].events,
sys/arch/arm/acpi/cpu_acpi.c
323
ci->ci_lpi[n].events.ev_count++;
sys/arch/arm/amlogic/meson_uart.c
373
meson_uart_poll(dev_t dev, int events, lwp_t *l)
sys/arch/arm/amlogic/meson_uart.c
379
return tp->t_linesw->l_poll(tp, events, l);
sys/arch/arm/at91/at91dbgu.c
651
at91dbgu_poll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/at91/at91dbgu.c
659
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/at91/at91usart.c
743
at91usart_poll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/at91/at91usart.c
751
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/broadcom/bcm2835_bsc.c
307
bsciic_wait(struct bsciic_softc * const sc, const uint32_t events)
sys/arch/arm/broadcom/bcm2835_bsc.c
314
events | BSC_S_CLKT | BSC_S_ERR | BSC_S_DONE;
sys/arch/arm/clps711x/clpscom.c
799
clpscompoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/clps711x/clpscom.c
808
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arm/ep93xx/epcom.c
652
epcompoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/ep93xx/epcom.c
660
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/footbridge/footbridge_com.c
325
fcompoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/footbridge/footbridge_com.c
330
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/imx/imxuart.c
852
imxupoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/imx/imxuart.c
861
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/ixp12x0/ixp12x0_com.c
659
ixpcompoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/ixp12x0/ixp12x0_com.c
667
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/arm/nvidia/tegra_cec.c
429
tegra_cec_poll(void *priv, int events, lwp_t *l)
sys/arch/arm/nvidia/tegra_cec.c
434
revents = events & (POLLOUT | POLLWRNORM);
sys/arch/arm/nvidia/tegra_cec.c
436
if ((events & (POLLIN | POLLRDNORM)) == 0)
sys/arch/arm/nvidia/tegra_cec.c
441
revents = (events & (POLLIN | POLLRDNORM));
sys/arch/arm/s3c2xx0/sscom.c
788
sscompoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/s3c2xx0/sscom.c
796
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arm/sa11x0/sa11x0_com.c
679
sacompoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/sa11x0/sa11x0_com.c
688
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/arm/samsung/exynos_uart.c
465
exynos_uart_poll(dev_t dev, int events, lwp_t *l)
sys/arch/arm/samsung/exynos_uart.c
471
return tp->t_linesw->l_poll(tp, events, l);
sys/arch/arm/xilinx/zynq_uart.c
848
zynquartpoll(dev_t dev, int events, struct lwp *l)
sys/arch/arm/xilinx/zynq_uart.c
857
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/atari/dev/event.c
148
ev_poll(register struct evvar *ev, int events, struct lwp *l)
sys/arch/atari/dev/event.c
153
if (events & (POLLIN | POLLRDNORM)) {
sys/arch/atari/dev/event.c
155
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/atari/dev/ite.c
489
itepoll(dev_t dev, int events, struct lwp *l)
sys/arch/atari/dev/ite.c
496
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/atari/dev/kbd.c
404
kbdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/atari/dev/kbd.c
408
return ev_poll(&sc->sc_events, events, l);
sys/arch/atari/dev/ms.c
422
mspoll(dev_t dev, int events, struct lwp *l)
sys/arch/atari/dev/ms.c
427
return ev_poll(&ms->ms_events, events, l);
sys/arch/atari/dev/ser.c
537
serpoll(dev_t dev, int events, struct lwp *l)
sys/arch/atari/dev/ser.c
542
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/atari/dev/zs.c
548
zspoll(dev_t dev, int events, struct lwp *l)
sys/arch/atari/dev/zs.c
560
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/cobalt/dev/lcdpanel.c
305
lcdpanelpoll(dev_t dev, int events, struct lwp *l)
sys/arch/cobalt/dev/lcdpanel.c
309
if ((events & (POLLIN | POLLRDNORM)) != 0) {
sys/arch/cobalt/dev/lcdpanel.c
314
revents = events & (POLLIN | POLLRDNORM);
sys/arch/emips/ebus/dz_ebus.c
319
dzpoll(dev_t dev, int events, struct lwp *l)
sys/arch/emips/ebus/dz_ebus.c
327
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/epoc32/windermere/wmcom.c
677
wmcompoll(dev_t dev, int events, struct lwp *l)
sys/arch/epoc32/windermere/wmcom.c
685
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/evbarm/dev/plcom.c
1040
plcompoll(dev_t dev, int events, struct lwp *l)
sys/arch/evbarm/dev/plcom.c
1049
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/evbarm/tsarm/tslcd.c
310
tslcdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/evbppc/virtex/dev/xlcom.c
488
xlcom_poll(dev_t dev, int events, struct lwp *l)
sys/arch/evbppc/virtex/dev/xlcom.c
498
return (tp->t_linesw->l_poll)(tp, events, l);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
160
SIMPLEQ_HEAD(, shpcmcia_event) events;
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
277
SIMPLEQ_INIT(&sc->sc_handle[0].events);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
375
if ((pe = SIMPLEQ_FIRST(&h->events)) == NULL) {
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
377
(void) tsleep(&h->events, PWAIT, "waitev", 0);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
386
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
395
if ((pe1 = SIMPLEQ_FIRST(&h->events)) == NULL)
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
402
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
404
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
420
if ((pe1 = SIMPLEQ_FIRST(&h->events)) == NULL)
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
427
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
429
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
467
SIMPLEQ_INSERT_TAIL(&h->events, pe, pe_q);
sys/arch/evbsh3/ap_ms104_sh4/shpcmcia.c
469
wakeup(&h->events);
sys/arch/hp300/dev/dcm.c
645
dcmpoll(dev_t dev, int events, struct lwp *l)
sys/arch/hp300/dev/dcm.c
658
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/hpcmips/tx/txcom.c
921
txcompoll(dev_t dev, int events, struct lwp *l)
sys/arch/hpcmips/tx/txcom.c
926
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/hppa/dev/pdc.c
362
pdcpoll(dev_t dev, int events, struct lwp *l)
sys/arch/hppa/dev/pdc.c
367
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/landisk/dev/button.c
263
btnpoll(dev_t dev, int events, struct lwp *l)
sys/arch/landisk/dev/button.c
271
revents = events & (POLLOUT | POLLWRNORM);
sys/arch/landisk/dev/button.c
274
if ((events & (POLLIN | POLLRDNORM)) == 0)
sys/arch/landisk/dev/button.c
279
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/luna68k/dev/siotty.c
610
siopoll(dev_t dev, int events, struct lwp *l)
sys/arch/luna68k/dev/siotty.c
617
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/mac68k/dev/aed.c
700
aedpoll(dev_t dev, int events, struct lwp *l)
sys/arch/mac68k/dev/aed.c
704
revents = events & (POLLOUT | POLLWRNORM);
sys/arch/mac68k/dev/aed.c
706
if ((events & (POLLIN | POLLRDNORM)) == 0)
sys/arch/mac68k/dev/aed.c
711
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/mac68k/dev/ite_compat.c
197
itepoll(dev_t dev, int events, struct lwp *l)
sys/arch/mac68k/dev/ite_compat.c
200
(*wsdisplay_cdevsw.d_poll)(cn_tab->cn_dev, events, l) : (ENXIO);
sys/arch/macppc/dev/aed.c
574
aedpoll(dev_t dev, int events, struct lwp *l)
sys/arch/macppc/dev/aed.c
578
revents = events & (POLLOUT | POLLWRNORM);
sys/arch/macppc/dev/aed.c
580
if ((events & (POLLIN | POLLRDNORM)) == 0)
sys/arch/macppc/dev/aed.c
585
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/macppc/dev/apm.c
372
apmpoll(dev_t dev, int events, struct lwp *l)
sys/arch/macppc/dev/apm.c
378
if (events & (POLLIN | POLLRDNORM)) {
sys/arch/macppc/dev/apm.c
380
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/macppc/macppc/pic_heathrow.c
198
uint32_t irqs, events, levels;
sys/arch/macppc/macppc/pic_heathrow.c
202
events = irqs & ~heathrow->level_mask_l;
sys/arch/macppc/macppc/pic_heathrow.c
205
events |= levels & heathrow->level_mask_l;
sys/arch/macppc/macppc/pic_heathrow.c
206
out32rb(INT_CLEAR_REG_L, events | irqs);
sys/arch/macppc/macppc/pic_heathrow.c
207
heathrow->pending_events_l |= events;
sys/arch/macppc/macppc/pic_heathrow.c
211
events = irqs & ~heathrow->level_mask_h;
sys/arch/macppc/macppc/pic_heathrow.c
213
events |= levels & heathrow->level_mask_h;
sys/arch/macppc/macppc/pic_heathrow.c
214
out32rb(INT_CLEAR_REG_H, events);
sys/arch/macppc/macppc/pic_heathrow.c
215
heathrow->pending_events_h |= events;
sys/arch/macppc/macppc/pic_ohare.c
204
uint32_t irqs, events, levels;
sys/arch/macppc/macppc/pic_ohare.c
207
events = irqs & ~ohare->level_mask;
sys/arch/macppc/macppc/pic_ohare.c
210
events |= levels & ohare->level_mask;
sys/arch/macppc/macppc/pic_ohare.c
211
out32rb(INT_CLEAR_REG, events | irqs);
sys/arch/macppc/macppc/pic_ohare.c
212
ohare->pending_events |= events;
sys/arch/macppc/macppc/pic_ohare.c
215
if (events != 0)
sys/arch/macppc/macppc/pic_ohare.c
216
aprint_error("%s: ev %08x\n", __func__, events);
sys/arch/mips/adm5120/dev/uart.c
262
uart_poll(dev_t dev, int events, struct lwp *l)
sys/arch/mips/adm5120/dev/uart.c
267
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/mips/sibyte/dev/sbscn.c
726
sbscnpoll(dev_t dev, int events, struct lwp *l)
sys/arch/mips/sibyte/dev/sbscn.c
732
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/mmeye/dev/mmeyepcmcia.c
108
SIMPLEQ_HEAD(, mmeyepcmcia_event) events;
sys/arch/mmeye/dev/mmeyepcmcia.c
302
SIMPLEQ_INIT(&sc->handle[0].events);
sys/arch/mmeye/dev/mmeyepcmcia.c
383
if ((pe = SIMPLEQ_FIRST(&h->events)) == NULL) {
sys/arch/mmeye/dev/mmeyepcmcia.c
385
(void) tsleep(&h->events, PWAIT, "mmeyepcmciaev", 0);
sys/arch/mmeye/dev/mmeyepcmcia.c
394
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/mmeye/dev/mmeyepcmcia.c
403
if ((pe1 = SIMPLEQ_FIRST(&h->events)) == NULL)
sys/arch/mmeye/dev/mmeyepcmcia.c
410
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/mmeye/dev/mmeyepcmcia.c
412
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/mmeye/dev/mmeyepcmcia.c
427
if ((pe1 = SIMPLEQ_FIRST(&h->events)) == NULL)
sys/arch/mmeye/dev/mmeyepcmcia.c
434
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/mmeye/dev/mmeyepcmcia.c
436
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/arch/mmeye/dev/mmeyepcmcia.c
598
SIMPLEQ_INSERT_TAIL(&h->events, pe, pe_q);
sys/arch/mmeye/dev/mmeyepcmcia.c
600
wakeup(&h->events);
sys/arch/news68k/news68k/romcons.c
213
romcons_poll(dev_t dev, int events, struct lwp *l)
sys/arch/news68k/news68k/romcons.c
220
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/powerpc/mpc5200/psc.c
555
pscpoll(dev_t dev, int events, struct lwp *l)
sys/arch/powerpc/mpc5200/psc.c
560
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/sandpoint/sandpoint/satmgr.c
572
satpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sandpoint/sandpoint/satmgr.c
579
if (events & (POLLIN | POLLRDNORM)) {
sys/arch/sandpoint/sandpoint/satmgr.c
581
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/sgimips/dev/scn.c
1223
scnpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sgimips/dev/scn.c
1228
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sh3/dev/sci.c
759
scipoll(dev_t dev, int events, struct lwp *l)
sys/arch/sh3/dev/sci.c
764
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sh3/dev/scif.c
872
scifpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sh3/dev/scif.c
880
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc/dev/cgfourteen.c
608
cgfourteenpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sparc/dev/cgfourteen.c
611
return (seltrue(dev, events, l));
sys/arch/sparc/dev/kd.c
297
kdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sparc/dev/kd.c
305
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc/dev/tctrl.c
1198
tctrlpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sparc/dev/tctrl.c
1204
if (events & (POLLIN | POLLRDNORM)) {
sys/arch/sparc/dev/tctrl.c
1206
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/sparc64/dev/kd.c
269
kdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sparc64/dev/kd.c
277
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc64/dev/pcons.c
200
pconspoll(dev_t dev, int events, struct lwp *l)
sys/arch/sparc64/dev/pcons.c
205
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc64/dev/sab.c
924
sabpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sparc64/dev/sab.c
929
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sparc64/dev/tadpmu.c
292
uint8_t events, gs, vb;
sys/arch/sparc64/dev/tadpmu.c
304
events = ev_data;
sys/arch/sparc64/dev/tadpmu.c
307
events, gs, vb);
sys/arch/sparc64/dev/tadpmu.c
309
if (events & TADPMU_EV_PWRBUTT) {
sys/arch/sparc64/dev/tadpmu.c
317
if (events & TADPMU_EV_LID) {
sys/arch/sparc64/dev/tadpmu.c
326
if (events & TADPMU_EV_DCPOWER) {
sys/arch/sparc64/dev/tadpmu.c
335
if (events & TADPMU_EV_BATTCHANGE) {
sys/arch/sparc64/dev/tadpmu.c
347
if (events & TADPMU_EV_BATTCHARGED) {
sys/arch/sun2/dev/kd.c
312
kdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sun2/dev/kd.c
320
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/sun2/dev/pcons.c
198
pconspoll(dev_t dev, int events, struct lwp *l)
sys/arch/sun2/dev/pcons.c
203
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/sun3/dev/kd.c
240
kdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/sun3/dev/kd.c
248
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/usermode/dev/ttycons.c
271
ttycons_poll(dev_t dev, int events, lwp_t *l)
sys/arch/usermode/dev/ttycons.c
279
return t->t_linesw->l_poll(t, events, l);
sys/arch/usermode/usermode/thunk.c
1340
fds[0].events = POLLIN;
sys/arch/usermode/usermode/thunk.c
468
fds[0].events = POLLIN;
sys/arch/usermode/usermode/thunk.c
860
fds[0].events = POLLIN|POLLRDNORM;
sys/arch/usermode/usermode/thunk.c
881
fds[0].events = POLLOUT|POLLWRNORM;
sys/arch/vax/include/qduser.h
220
#define GETBEGIN(eq) (&(eq)->header.events[(eq)->header.head])
sys/arch/vax/include/qduser.h
244
#define PUTBEGIN(eq) (&(eq)->header.events[(eq)->header.tail])
sys/arch/vax/include/qevent.h
93
vsEvent *events; /* input event buffer */
sys/arch/vax/uba/qvaux.c
608
qvauxpoll(dev_t dev, int events, struct lwp *l)
sys/arch/vax/uba/qvaux.c
614
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/vax/vax/gencons.c
174
gencnpoll(dev_t dev, int events, struct lwp *l)
sys/arch/vax/vax/gencons.c
178
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/x68k/dev/event.c
151
ev_poll(struct evvar *ev, int events, struct lwp *l)
sys/arch/x68k/dev/event.c
156
if (events & (POLLIN | POLLRDNORM)) {
sys/arch/x68k/dev/event.c
160
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/x68k/dev/event.c
162
revents |= events & (POLLOUT | POLLWRNORM);
sys/arch/x68k/dev/ite.c
444
itepoll(dev_t dev, int events, struct lwp *l)
sys/arch/x68k/dev/ite.c
448
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/arch/x68k/dev/kbd.c
310
kbdpoll(dev_t dev, int events, struct lwp *l)
sys/arch/x68k/dev/kbd.c
315
return (ev_poll(&k->sc_events, events, l));
sys/arch/x68k/dev/ms.c
340
mspoll(dev_t dev, int events, struct lwp *l)
sys/arch/x68k/dev/ms.c
345
return ev_poll(&ms->ms_events, events, l);
sys/arch/xen/x86/hypervisor_machdep.c
202
if (HYPERVISOR_shared_info->events)
sys/arch/xen/x86/hypervisor_machdep.c
204
HYPERVISOR_shared_info->events,
sys/arch/xen/xen/xencons.c
326
xencons_poll(dev_t dev, int events, struct lwp *l)
sys/arch/xen/xen/xencons.c
332
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/arch/xen/xen/xenevt.c
655
xenevt_fpoll(struct file *fp, int events)
sys/arch/xen/xen/xenevt.c
658
int revents = events & (POLLOUT | POLLWRNORM); /* we can always write */
sys/arch/xen/xen/xenevt.c
661
if (events & (POLLIN | POLLRDNORM)) {
sys/arch/xen/xen/xenevt.c
663
revents |= events & (POLLIN | POLLRDNORM);
sys/arch/zaurus/dev/zapm.c
169
sc->events = 0;
sys/arch/zaurus/dev/zapm.c
226
sc->events |= (1 << APM_USER_STANDBY_REQ);
sys/arch/zaurus/dev/zapm.c
228
sc->events |= (1 << APM_NORMAL_RESUME);
sys/arch/zaurus/dev/zapm.c
234
sc->events |= (1 << APM_USER_SUSPEND_REQ);
sys/arch/zaurus/dev/zapm.c
236
sc->events |= (1 << APM_NORMAL_RESUME);
sys/arch/zaurus/dev/zapm.c
445
if (sc->events & (1 << ev)) {
sys/arch/zaurus/dev/zapm.c
446
sc->events &= ~(1 << ev);
sys/arch/zaurus/dev/zapm.c
70
volatile u_int events;
sys/coda/coda_psdev.c
442
vc_nb_poll(dev_t dev, int events, struct lwp *l)
sys/coda/coda_psdev.c
454
event_msk = events & (POLLIN|POLLRDNORM);
sys/coda/coda_psdev.c
459
return(events & (POLLIN|POLLRDNORM));
sys/compat/linux/arch/aarch64/linux_syscallargs.h
1168
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/aarch64/linux_syscallargs.h
150
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/aarch64/linux_systrace_args.c
166
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/aarch64/linux_systrace_args.c
1883
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/alpha/linux_syscallargs.h
1252
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/alpha/linux_syscallargs.h
1436
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/alpha/linux_syscallargs.h
973
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/amd64/linux_syscallargs.h
1143
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/amd64/linux_syscallargs.h
1334
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/amd64/linux_syscallargs.h
943
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/amd64/linux_systrace_args.c
1642
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/amd64/linux_systrace_args.c
1944
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/amd64/linux_systrace_args.c
2194
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/arm/linux_syscallargs.h
1216
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/arm/linux_syscallargs.h
1412
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/arm/linux_syscallargs.h
939
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/arm/linux_systrace_args.c
1631
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/arm/linux_systrace_args.c
2042
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/arm/linux_systrace_args.c
2297
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/i386/linux_syscallargs.h
1255
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/i386/linux_syscallargs.h
1422
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/i386/linux_syscallargs.h
986
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/i386/linux_systrace_args.c
1694
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/i386/linux_systrace_args.c
2095
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/i386/linux_systrace_args.c
2315
uarg[1] = (intptr_t) SCARG(p, events); /* struct linux_epoll_event * */
sys/compat/linux/arch/m68k/linux_syscallargs.h
1207
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/m68k/linux_syscallargs.h
1393
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/m68k/linux_syscallargs.h
933
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/mips/linux_syscallargs.h
1254
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/mips/linux_syscallargs.h
1438
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/mips/linux_syscallargs.h
980
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
1133
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
1327
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/arch/powerpc/linux_syscallargs.h
877
syscallarg(struct linux_epoll_event *) events;
sys/compat/linux/common/linux_inotify.c
1246
inotify_poll(file_t *fp, int events)
sys/compat/linux/common/linux_inotify.c
1252
if (events & (POLLIN|POLLRDNORM)) {
sys/compat/linux/common/linux_inotify.c
1256
revents |= events & (POLLIN|POLLRDNORM);
sys/compat/linux/common/linux_misc.c
1846
ee.events = lee.events;
sys/compat/linux/common/linux_misc.c
1874
SCARG(&ea, events) = SCARG(uap, events);
sys/compat/linux/common/linux_misc.c
1889
struct linux_epoll_event *events, int maxevents,
sys/compat/linux/common/linux_misc.c
1927
leep[i].events = eep[i].events;
sys/compat/linux/common/linux_misc.c
1931
error = copyout(leep, events, (*retval) * sizeof(*leep));
sys/compat/linux/common/linux_misc.c
1966
SCARG(uap, events), SCARG(uap, maxevents), ltsp,
sys/compat/linux/common/linux_misc.c
1998
SCARG(uap, events), SCARG(uap, maxevents), ltsp,
sys/compat/linux/common/linux_misc.h
170
uint32_t events;
sys/compat/netbsd32/netbsd32.h
216
uint32_t events;
sys/compat/netbsd32/netbsd32_compat_100.c
103
for (i = 0, ke32 = events32; i < n; i++, ke32++, events++)
sys/compat/netbsd32/netbsd32_compat_100.c
104
compat_100_netbsd32_from_kevent(events, ke32);
sys/compat/netbsd32/netbsd32_compat_100.c
97
compat_100_netbsd32_kevent_put_events(void *ctx, struct kevent *events,
sys/compat/netbsd32/netbsd32_conv.h
966
ee->events = ee32->events;
sys/compat/netbsd32/netbsd32_conv.h
976
ee32->events = ee->events;
sys/compat/netbsd32/netbsd32_epoll.c
128
events = kmem_alloc(maxevents * sizeof(*events), KM_SLEEP);
sys/compat/netbsd32/netbsd32_epoll.c
130
error = epoll_wait_common(l, retval, SCARG(uap, epfd), events,
sys/compat/netbsd32/netbsd32_epoll.c
139
netbsd32_from_epoll_event(&events[i], &events32[i]);
sys/compat/netbsd32/netbsd32_epoll.c
141
error = copyout(events, SCARG_P32(uap, events),
sys/compat/netbsd32/netbsd32_epoll.c
147
kmem_free(events, maxevents * sizeof(*events));
sys/compat/netbsd32/netbsd32_epoll.c
98
struct epoll_event *events;
sys/compat/netbsd32/netbsd32_event.c
82
netbsd32_kevent_put_events(void *ctx, struct kevent *events,
sys/compat/netbsd32/netbsd32_event.c
88
for (i = 0, kev32 = events32; i < n; i++, kev32++, events++)
sys/compat/netbsd32/netbsd32_event.c
89
netbsd32_from_kevent(events, kev32);
sys/compat/netbsd32/netbsd32_syscallargs.h
2823
syscallarg(netbsd32_epoll_eventp_t) events;
sys/compat/netbsd32/netbsd32_systrace_args.c
3748
uarg[1] = (intptr_t) SCARG(p, events).i32; /* netbsd32_epoll_eventp_t */
sys/compat/sys/event.h
107
kevent_to_kevent100(events + i, buf + i);
sys/compat/sys/event.h
94
compat_100___kevent50_put_events(void *ctx, struct kevent *events,
sys/dev/apm/apm.c
850
apmpoll(dev_t dev, int events, struct lwp *l)
sys/dev/apm/apm.c
856
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/apm/apm.c
858
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/arcbios/arcbios_tty.c
164
arcbios_ttypoll(dev_t dev, int events, struct lwp *l)
sys/dev/arcbios/arcbios_tty.c
168
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/audio/audio.c
2052
audiopoll(struct file *fp, int events)
sys/dev/audio/audio.c
2076
revents = audio_poll(sc, events, l, file);
sys/dev/audio/audio.c
3408
audio_poll(struct audio_softc *sc, int events, struct lwp *l,
sys/dev/audio/audio.c
3422
snprintb(evbuf, sizeof(evbuf), POLLEV_BITMAP, events);
sys/dev/audio/audio.c
3430
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/audio/audio.c
3437
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/audio/audio.c
3440
if (events & (POLLOUT | POLLWRNORM)) {
sys/dev/audio/audio.c
3445
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/cons.c
282
cnpoll(dev_t dev, int events, struct lwp *l)
sys/dev/cons.c
294
error = cdev_poll(dev, events, l);
sys/dev/dec/dz.c
464
dzpoll(dev_t dev, int events, struct lwp *l)
sys/dev/dec/dz.c
469
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/dmover/dmover_io.c
678
dmio_poll(struct file *fp, int events)
sys/dev/dmover/dmover_io.c
683
if ((events & (POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM)) == 0)
sys/dev/dmover/dmover_io.c
690
revents |= events & (POLLIN | POLLRDNORM |
sys/dev/dmover/dmover_io.c
696
if (events & (POLLIN | POLLRDNORM))
sys/dev/dmover/dmover_io.c
698
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/dmover/dmover_io.c
704
if (events & (POLLOUT | POLLWRNORM))
sys/dev/dmover/dmover_io.c
706
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/dtv/dtv_buffer.c
296
dtv_buffer_poll(struct dtv_softc *sc, int events, lwp_t *l)
sys/dev/dtv/dtv_demux.c
460
dtv_demux_poll(struct file *fp, int events)
sys/dev/dtv/dtv_device.c
278
dtvpoll(dev_t dev, int events, lwp_t *l)
sys/dev/dtv/dtv_device.c
288
return dtv_buffer_poll(sc, events, l);
sys/dev/goldfish/gftty.c
571
gftty_poll(dev_t dev, int events, struct lwp *l)
sys/dev/goldfish/gftty.c
579
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/gpib/gpib.c
566
gpibpoll(dev_t dev, int events, struct lwp *l)
sys/dev/gpio/gpioirq.c
392
gpioirq_poll(dev_t dev, int events, struct lwp *l)
sys/dev/gpio/gpioirq.c
405
if ((events & (POLLIN | POLLRDNORM)) != 0) {
sys/dev/gpio/gpioirq.c
407
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/hdmicec/hdmicec.c
192
hdmicec_poll(dev_t dev, int events, lwp_t *l)
sys/dev/hdmicec/hdmicec.c
197
return sc->sc_hwif->poll(sc->sc_priv, events, l);
sys/dev/hdmicec/hdmicec_if.h
40
int (*poll)(void *, int events, lwp_t *l);
sys/dev/hid/uhid_common.c
599
uhidpoll(dev_t dev, int events, struct lwp *l)
sys/dev/hid/uhid_common.c
605
if (events & (POLLOUT | POLLWRNORM))
sys/dev/hid/uhid_common.c
606
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/hid/uhid_common.c
607
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/hid/uhid_common.c
609
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/hpc/apm/apmdev.c
891
apmdevpoll(dev_t dev, int events, struct lwp *l)
sys/dev/hpc/apm/apmdev.c
897
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/hpc/apm/apmdev.c
899
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/hpc/biconsdev.c
229
biconsdevpoll(dev_t dev, int events, struct lwp *l)
sys/dev/hpc/biconsdev.c
233
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/hpc/hpcapm.c
123
sc->events = 0;
sys/dev/hpc/hpcapm.c
180
sc->events |= (1 << APM_USER_STANDBY_REQ);
sys/dev/hpc/hpcapm.c
182
sc->events |= (1 << APM_NORMAL_RESUME);
sys/dev/hpc/hpcapm.c
188
sc->events |= (1 << APM_USER_SUSPEND_REQ);
sys/dev/hpc/hpcapm.c
190
sc->events |= (1 << APM_NORMAL_RESUME);
sys/dev/hpc/hpcapm.c
408
if (sc->events & (1 << i)) {
sys/dev/hpc/hpcapm.c
409
sc->events &= ~(1 << i);
sys/dev/hpc/hpcapm.c
81
volatile unsigned int events;
sys/dev/ic/cd18xx.c
556
cdttypoll(dev_t dev, int events, struct lwp *l)
sys/dev/ic/cd18xx.c
562
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/clmpcc.c
622
clmpccpoll(dev_t dev, int events, struct lwp *l)
sys/dev/ic/clmpcc.c
627
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/com.c
1356
compoll(dev_t dev, int events, struct lwp *l)
sys/dev/ic/com.c
1365
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/cy.c
472
cypoll(dev_t dev, int events, struct lwp *l)
sys/dev/ic/cy.c
480
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ic/i82365.c
298
SIMPLEQ_INIT(&h->events);
sys/dev/ic/i82365.c
537
if ((pe = SIMPLEQ_FIRST(&h->events)) == NULL) {
sys/dev/ic/i82365.c
547
(void) tsleep(&h->events, PWAIT, "pcicev", 0);
sys/dev/ic/i82365.c
556
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/dev/ic/i82365.c
565
if ((pe1 = SIMPLEQ_FIRST(&h->events)) == NULL)
sys/dev/ic/i82365.c
572
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/dev/ic/i82365.c
574
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/dev/ic/i82365.c
590
if ((pe1 = SIMPLEQ_FIRST(&h->events)) == NULL)
sys/dev/ic/i82365.c
597
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/dev/ic/i82365.c
599
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/dev/ic/i82365.c
747
SIMPLEQ_INSERT_TAIL(&h->events, pe, pe_q);
sys/dev/ic/i82365.c
749
wakeup(&h->events);
sys/dev/ic/i82365var.h
83
SIMPLEQ_HEAD(, pcic_event) events;
sys/dev/ic/tcic2.c
368
SIMPLEQ_INIT(&sc->handle[i].events);
sys/dev/ic/tcic2.c
462
if ((pe = SIMPLEQ_FIRST(&h->events)) == NULL) {
sys/dev/ic/tcic2.c
464
(void) tsleep(&h->events, PWAIT, "tcicev", 0);
sys/dev/ic/tcic2.c
467
SIMPLEQ_REMOVE_HEAD(&h->events, pe_q);
sys/dev/ic/tcic2.c
642
SIMPLEQ_INSERT_TAIL(&h->events, pe, pe_q);
sys/dev/ic/tcic2.c
644
wakeup(&h->events);
sys/dev/ic/tcic2var.h
82
SIMPLEQ_HEAD(, tcic_event) events;
sys/dev/ic/z8530tty.c
752
zspoll(dev_t dev, int events, struct lwp *l)
sys/dev/ic/z8530tty.c
760
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/ieee1394/fwdev.c
690
fw_poll(dev_t dev, int events, struct lwp *td)
sys/dev/ieee1394/fwdev.c
703
if (events & tmp) {
sys/dev/ieee1394/fwdev.c
710
if (events & tmp)
sys/dev/ipmi.c
2550
ipmi_poll(dev_t dev, int events, lwp_t *l)
sys/dev/ipmi.c
2560
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/ipmi.c
2562
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/ir/cir.c
235
cirpoll(dev_t dev, int events, struct lwp *l)
sys/dev/ir/cir.c
249
if (events & (POLLIN | POLLRDNORM))
sys/dev/ir/cir.c
251
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/ir/cir.c
255
if (events & (POLLOUT | POLLWRNORM))
sys/dev/ir/cir.c
257
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/ir/cir.c
261
if (events & (POLLIN | POLLRDNORM))
sys/dev/ir/cir.c
265
if (events & (POLLOUT | POLLWRNORM))
sys/dev/ir/irframe.c
375
irframepoll(dev_t dev, int events, struct lwp *l)
sys/dev/ir/irframe.c
385
return (sc->sc_methods->im_poll(sc->sc_handle, events, l));
sys/dev/ir/irframe_tty.c
753
irframet_poll(void *h, int events, struct lwp *l)
sys/dev/ir/irframe_tty.c
764
if (events & (POLLOUT | POLLWRNORM))
sys/dev/ir/irframe_tty.c
766
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/ir/irframe_tty.c
768
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/ir/irframe_tty.c
771
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/marvell/gtmpsc.c
747
gtmpscpoll(dev_t dev, int events, struct lwp *l)
sys/dev/marvell/gtmpsc.c
753
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/midi.c
1695
midipoll(dev_t dev, int events, struct lwp *l)
sys/dev/midi.c
1706
DPRINTFN(6,("midipoll: %p events=0x%x\n", sc, events));
sys/dev/midi.c
1716
if ((events & (POLLIN | POLLRDNORM)) != 0) {
sys/dev/midi.c
1719
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/midi.c
1723
if ((events & (POLLOUT | POLLWRNORM)) != 0) {
sys/dev/midi.c
1727
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/ofw/ofcons.c
192
ofcons_poll(dev_t dev, int events, struct lwp *l)
sys/dev/ofw/ofcons.c
197
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/pad/pad.c
451
fops_pad_poll(struct file *fp, int events)
sys/dev/pci/arcmsrvar.h
382
uint32_t events;
sys/dev/pci/bktr/bktr_os.c
1279
int bktr_poll(dev_t dev, int events, struct lwp *l)
sys/dev/pci/bktr/bktr_os.c
1294
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/pci/bktr/bktr_os.c
1301
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/pci/bktr/bktr_os.c
814
int bktr_poll(dev_t dev, int events, struct lwp *l)
sys/dev/pci/bktr/bktr_os.c
832
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/pci/bktr/bktr_os.c
839
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/pci/cz.c
1120
czttypoll(dev_t dev, int events, struct lwp *l)
sys/dev/pci/cz.c
1125
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/pci/if_iwn.c
5439
memcpy(wimax.events, iwn6050_wimax_events,
sys/dev/pci/if_iwn.c
5446
memset(wimax.events, 0, sizeof wimax.events);
sys/dev/pci/if_iwnreg.h
738
} __packed events[16];
sys/dev/pci/if_kse.c
581
const char *events[34] = {
sys/dev/pci/if_kse.c
624
NULL, ee->evcntname[i], events[ev]);
sys/dev/pci/if_mcx.c
4361
uint64_t events, int vector)
sys/dev/pci/if_mcx.c
4409
mbin->cmd_event_bitmask = htobe64(events);
sys/dev/pci/oboe.c
438
oboe_poll(void *h, int events, struct lwp *l)
sys/dev/pci/oboe.c
447
if (events & (POLLOUT | POLLWRNORM))
sys/dev/pci/oboe.c
448
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/pci/oboe.c
449
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/pci/oboe.c
452
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/pci/oboe.c
77
static int oboe_poll(void *h, int events, struct lwp *l);
sys/dev/pci/xmm7360.c
2709
wwancpoll(dev_t dev, int events, struct proc *p)
sys/dev/pci/xmm7360.c
2718
return ttpoll(dev, events, p);
sys/dev/pci/xmm7360.c
2723
return LINESW(tp).l_poll(tp, events, p);
sys/dev/pci/xmm7360.c
2741
if ((mask & events) == 0) {
sys/dev/pci/xmm7360.c
2742
if (events & (POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND))
sys/dev/pci/xmm7360.c
2744
if (events & (POLLOUT | POLLWRNORM))
sys/dev/pci/xmm7360.c
2748
return mask & events;
sys/dev/putter/putter.c
323
putter_fop_poll(file_t *fp, int events)
sys/dev/putter/putter.c
336
revents = events & (POLLOUT | POLLWRNORM | POLLWRBAND);
sys/dev/putter/putter.c
337
if ((events & PUTTERPOLL_EVSET) == 0) {
sys/dev/qbus/dhu.c
532
dhupoll(dev_t dev, int events, struct lwp *l)
sys/dev/qbus/dhu.c
537
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/qbus/dl.c
404
dlpoll(dev_t dev, int events, struct lwp *l)
sys/dev/qbus/dl.c
409
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/qbus/qd.c
1499
qdpoll(dev_t dev, int events, struct proc *p)
sys/dev/qbus/qd.c
1515
if (events & (POLLIN | POLLRDNORM))
sys/dev/qbus/qd.c
1517
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/qbus/qd.c
1519
if (events & (POLLOUT | POLLWRNORM))
sys/dev/qbus/qd.c
1521
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/qbus/qd.c
1524
if (events & (POLLIN | POLLRDNORM))
sys/dev/qbus/qd.c
1527
if (events & (POLLOUT | POLLWRNORM))
sys/dev/qbus/qd.c
1535
revents = (*tp->t_linesw->l_poll)(tp, events, p);
sys/dev/qbus/qd.c
778
eq_header[unit]->header.events =
sys/dev/qbus/qduser.h
213
#define GETBEGIN(eq) (&(eq)->header.events[(eq)->header.head])
sys/dev/qbus/qduser.h
237
#define PUTBEGIN(eq) (&(eq)->header.events[(eq)->header.tail])
sys/dev/qbus/qevent.h
93
vsEvent *events; /* input event buffer */
sys/dev/random.c
152
random_poll(dev_t dev, int events, struct lwp *l)
sys/dev/random.c
158
return entropy_poll(events);
sys/dev/random.c
160
return events & (POLLIN|POLLRDNORM | POLLOUT|POLLWRNORM);
sys/dev/sbus/bpp.c
479
bpppoll(dev_t dev, int events, struct lwp *l)
sys/dev/sbus/bpp.c
486
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/sbus/bpp.c
490
if (events & (POLLOUT | POLLWRNORM)) {
sys/dev/sbus/bpp.c
496
if (events & (POLLIN | POLLRDNORM))
sys/dev/sbus/bpp.c
498
if (events & (POLLOUT | POLLWRNORM))
sys/dev/sbus/magma.c
1051
mttypoll(dev_t dev, int events, struct lwp *l)
sys/dev/sbus/magma.c
1058
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/sbus/spif.c
1050
sbpp_poll(dev_t dev, int events, struct lwp *l)
sys/dev/sbus/spif.c
1052
return (seltrue(dev, events, l));
sys/dev/sbus/spif.c
673
stty_poll(dev_t dev, int events, struct lwp *l)
sys/dev/sbus/spif.c
679
return ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/sbus/stp4020.c
127
SIMPLEQ_HEAD(, stp4020_event) events; /* Pending events for thread */
sys/dev/sbus/stp4020.c
459
SIMPLEQ_INIT(&sc->events);
sys/dev/sbus/stp4020.c
561
if ((e = SIMPLEQ_FIRST(&sc->events)) == NULL) {
sys/dev/sbus/stp4020.c
563
(void)tsleep(&sc->events, PWAIT, "nellevt", 0);
sys/dev/sbus/stp4020.c
566
SIMPLEQ_REMOVE_HEAD(&sc->events, se_q);
sys/dev/sbus/stp4020.c
603
SIMPLEQ_INSERT_TAIL(&sc->events, e, se_q);
sys/dev/sbus/stp4020.c
605
wakeup(&sc->events);
sys/dev/scsipi/ch.c
453
chpoll(dev_t dev, int events, struct lwp *l)
sys/dev/scsipi/ch.c
458
revents = events & (POLLOUT | POLLWRNORM);
sys/dev/scsipi/ch.c
460
if ((events & (POLLIN | POLLRDNORM)) == 0)
sys/dev/scsipi/ch.c
464
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/sequencer.c
885
sequencerpoll(dev_t dev, int events, struct lwp *l)
sys/dev/sequencer.c
893
DPRINTF(("%s: %p events=0x%x\n", __func__, sc, events));
sys/dev/sequencer.c
896
if (events & (POLLIN | POLLRDNORM))
sys/dev/sequencer.c
898
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/sequencer.c
900
if (events & (POLLOUT | POLLWRNORM))
sys/dev/sequencer.c
902
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/sequencer.c
905
if ((sc->flags&FREAD) && (events & (POLLIN | POLLRDNORM)))
sys/dev/sequencer.c
908
if ((sc->flags&FWRITE) && (events & (POLLOUT | POLLWRNORM)))
sys/dev/sun/event.c
153
ev_poll(struct evvar *ev, int events, struct lwp *l)
sys/dev/sun/event.c
157
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/sun/event.c
161
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/sun/event.c
163
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/sun/fb.c
259
fbpoll(dev_t dev, int events, struct lwp *l)
sys/dev/sun/fb.c
271
return (fbl->fb_dev->fb_driver->fbd_poll)(makedev(0, nunit), events,
sys/dev/sun/kbd.c
259
kbdpoll(dev_t dev, int events, struct lwp *l)
sys/dev/sun/kbd.c
264
return ev_poll(&k->k_events, events, l);
sys/dev/sun/ms.c
207
mspoll(dev_t dev, int events, struct lwp *l)
sys/dev/sun/ms.c
212
return ev_poll(&ms->ms_events, events, l);
sys/dev/sysmon/sysmon.c
266
sysmonpoll(dev_t dev, int events, struct lwp *l)
sys/dev/sysmon/sysmon.c
273
rv = events;
sys/dev/sysmon/sysmon.c
276
events, l);
sys/dev/sysmon/sysmon.c
279
rv = events;
sys/dev/sysmon/sysmon_power.c
517
sysmonpoll_power(dev_t dev, int events, struct lwp *l)
sys/dev/sysmon/sysmon_power.c
521
revents = events & (POLLOUT | POLLWRNORM);
sys/dev/sysmon/sysmon_power.c
524
if ((events & (POLLIN | POLLRDNORM)) == 0)
sys/dev/sysmon/sysmon_power.c
529
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/tprof/tprof.c
862
tprof_poll(dev_t dev, int events, struct lwp *l)
sys/dev/tprof/tprof.c
866
revents = events & (POLLIN | POLLRDNORM);
sys/dev/usb/ucom.c
1264
ucompoll(dev_t dev, int events, struct lwp *l)
sys/dev/usb/ucom.c
1272
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/usb/ucycom.c
887
ucycompoll(dev_t dev, int events, struct lwp *l)
sys/dev/usb/ucycom.c
895
events, l));
sys/dev/usb/ucycom.c
900
err = ((*tp->t_linesw->l_poll)(tp, events, l));
sys/dev/usb/udsir.c
636
udsir_poll(void *h, int events, struct lwp *l)
sys/dev/usb/udsir.c
643
if (events & (POLLOUT | POLLWRNORM)) {
sys/dev/usb/udsir.c
645
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/usb/udsir.c
652
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/usb/udsir.c
655
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/usb/ugen.c
2114
ugenpoll(dev_t dev, int events, struct lwp *l)
sys/dev/usb/ugen.c
2134
if (sce_in && sce_in->pipeh && (events & (POLLIN | POLLRDNORM)))
sys/dev/usb/ugen.c
2138
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/usb/ugen.c
2144
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/usb/ugen.c
2151
revents |= events &
sys/dev/usb/ugen.c
2162
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/usb/ugen.c
2167
if (sce_out && sce_out->pipeh && (events & (POLLOUT | POLLWRNORM)))
sys/dev/usb/ugen.c
2177
revents |= events &
sys/dev/usb/ugen.c
2188
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/usb/uhso.c
1784
uhso_tty_poll(dev_t dev, int events, struct lwp *l)
sys/dev/usb/uhso.c
1796
revents = tp->t_linesw->l_poll(tp, events, l);
sys/dev/usb/uirda.c
585
uirda_poll(void *h, int events, struct lwp *l)
sys/dev/usb/uirda.c
594
if (events & (POLLOUT | POLLWRNORM))
sys/dev/usb/uirda.c
595
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/usb/uirda.c
596
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/usb/uirda.c
599
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/usb/usb.c
1100
usbpoll(dev_t dev, int events, struct lwp *l)
sys/dev/usb/usb.c
1109
if (events & mask && usb_nevents > 0)
sys/dev/usb/usb.c
1110
revents |= events & mask;
sys/dev/usb/usb.c
1111
if (revents == 0 && events & mask)
sys/dev/usb/ustir.c
1024
ustir_poll(void *h, int events, struct lwp *l)
sys/dev/usb/ustir.c
1031
if (events & (POLLOUT | POLLWRNORM)) {
sys/dev/usb/ustir.c
1033
revents |= events & (POLLOUT | POLLWRNORM);
sys/dev/usb/ustir.c
1041
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/usb/ustir.c
1044
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/video.c
2362
videopoll(dev_t dev, int events, struct lwp *l)
sys/dev/video.c
2389
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/wscons/wsdisplay.c
1188
wsdisplaypoll(dev_t dev, int events, struct lwp *l)
sys/dev/wscons/wsdisplay.c
1197
return wsevent_poll(&sc->evar, events, l);
sys/dev/wscons/wsdisplay.c
1209
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/dev/wscons/wsevent.c
205
wsevent_copyout_events(const struct wscons_event *events, int cnt,
sys/dev/wscons/wsevent.c
213
(events, cnt, uio), enosys(), error);
sys/dev/wscons/wsevent.c
218
return uiomove(__UNCONST(events), cnt * sizeof(*events), uio);
sys/dev/wscons/wsevent.c
283
wsevent_poll(struct wseventvar *ev, int events, struct lwp *l)
sys/dev/wscons/wsevent.c
288
if (events & (POLLIN | POLLRDNORM)) {
sys/dev/wscons/wsevent.c
290
revents |= events & (POLLIN | POLLRDNORM);
sys/dev/wscons/wsevent.c
401
wsevent_inject(struct wseventvar *ev, struct wscons_event *events,
sys/dev/wscons/wsevent.c
426
we->type = events[i].type;
sys/dev/wscons/wsevent.c
427
we->value = events[i].value;
sys/dev/wscons/wsevent_50.c
125
wsevent_copyout_events50(const struct wscons_event *events, int cnt,
sys/dev/wscons/wsevent_50.c
131
const struct wscons_event *ev = &events[i];
sys/dev/wscons/wskbd.c
1281
wskbdpoll(dev_t dev, int events, struct lwp *l)
sys/dev/wscons/wskbd.c
1288
return (wsevent_poll(sc->sc_base.me_evp, events, l));
sys/dev/wscons/wsmouse.c
373
struct wscons_event events[4 + sizeof(d) * 8];
sys/dev/wscons/wsmouse.c
412
events[nevents].type = WSCONS_EVENT_MOUSE_ABSOLUTE_X;
sys/dev/wscons/wsmouse.c
413
events[nevents].value = x;
sys/dev/wscons/wsmouse.c
418
events[nevents].type = WSCONS_EVENT_MOUSE_DELTA_X;
sys/dev/wscons/wsmouse.c
419
events[nevents].value = sc->sc_dx;
sys/dev/wscons/wsmouse.c
425
events[nevents].type = WSCONS_EVENT_MOUSE_ABSOLUTE_Y;
sys/dev/wscons/wsmouse.c
426
events[nevents].value = y;
sys/dev/wscons/wsmouse.c
431
events[nevents].type = WSCONS_EVENT_MOUSE_DELTA_Y;
sys/dev/wscons/wsmouse.c
432
events[nevents].value = sc->sc_dy;
sys/dev/wscons/wsmouse.c
438
events[nevents].type = WSCONS_EVENT_MOUSE_ABSOLUTE_Z;
sys/dev/wscons/wsmouse.c
439
events[nevents].value = z;
sys/dev/wscons/wsmouse.c
444
events[nevents].type = WSCONS_EVENT_MOUSE_DELTA_Z;
sys/dev/wscons/wsmouse.c
445
events[nevents].value = sc->sc_dz;
sys/dev/wscons/wsmouse.c
451
events[nevents].type = WSCONS_EVENT_MOUSE_ABSOLUTE_W;
sys/dev/wscons/wsmouse.c
452
events[nevents].value = w;
sys/dev/wscons/wsmouse.c
457
events[nevents].type = WSCONS_EVENT_MOUSE_DELTA_W;
sys/dev/wscons/wsmouse.c
458
events[nevents].value = sc->sc_dw;
sys/dev/wscons/wsmouse.c
486
if (nevents >= __arraycount(events)) {
sys/dev/wscons/wsmouse.c
493
events[nevents].type =
sys/dev/wscons/wsmouse.c
495
events[nevents].value = btnno;
sys/dev/wscons/wsmouse.c
512
if (nevents == 0 || wsevent_inject(evar, events, nevents) == 0) {
sys/dev/wscons/wsmouse.c
535
struct wscons_event events[2];
sys/dev/wscons/wsmouse.c
551
events[nevents].type = WSCONS_EVENT_HSCROLL;
sys/dev/wscons/wsmouse.c
552
events[nevents].value = x;
sys/dev/wscons/wsmouse.c
557
events[nevents].type = WSCONS_EVENT_VSCROLL;
sys/dev/wscons/wsmouse.c
558
events[nevents].value = y;
sys/dev/wscons/wsmouse.c
562
(void)wsevent_inject(evar, events, nevents);
sys/dev/wscons/wsmouse.c
571
struct wscons_event events[2];
sys/dev/wscons/wsmouse.c
589
events[0].type = WSCONS_EVENT_MOUSE_UP;
sys/dev/wscons/wsmouse.c
590
events[0].value = sc->sc_repeat_button;
sys/dev/wscons/wsmouse.c
591
events[1].type = WSCONS_EVENT_MOUSE_DOWN;
sys/dev/wscons/wsmouse.c
592
events[1].value = sc->sc_repeat_button;
sys/dev/wscons/wsmouse.c
594
if (wsevent_inject(sc->sc_base.me_evp, events, 2) == 0) {
sys/dev/wscons/wsmouse.c
916
wsmousepoll(dev_t dev, int events, struct lwp *l)
sys/dev/wscons/wsmouse.c
923
return (wsevent_poll(sc->sc_base.me_evp, events, l));
sys/dev/wscons/wsmux.c
563
wsmuxpoll(dev_t dev, int events, struct lwp *l)
sys/dev/wscons/wsmux.c
575
return (wsevent_poll(sc->sc_base.me_evp, events, l));
sys/fs/puffs/puffs_vnops.c
1601
int events;
sys/fs/puffs/puffs_vnops.c
1605
events = pn->pn_revents & ap->a_events;
sys/fs/puffs/puffs_vnops.c
1606
if (events & ap->a_events) {
sys/fs/puffs/puffs_vnops.c
1610
return events;
sys/fs/tmpfs/tmpfs_subr.c
501
int events = NOTE_WRITE;
sys/fs/tmpfs/tmpfs_subr.c
537
events |= NOTE_LINK;
sys/kern/kern_drvctl.c
443
drvctl_poll(struct file *fp, int events)
sys/kern/kern_drvctl.c
448
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/kern_entropy.c
1636
entropy_poll(int events)
sys/kern/kern_entropy.c
1643
revents |= events & (POLLOUT|POLLWRNORM);
sys/kern/kern_entropy.c
1646
events &= POLLIN|POLLRDNORM;
sys/kern/kern_entropy.c
1647
if (events == 0)
sys/kern/kern_entropy.c
1657
return revents | events;
sys/kern/kern_entropy.c
1665
revents |= events;
sys/kern/kern_event.c
1778
kevent_put_events(void *ctx, struct kevent *events,
sys/kern/kern_event.c
1782
return copyout(events, eventlist + index, n * sizeof(*events));
sys/kern/kern_event.c
2609
kqueue_poll(file_t *fp, int events)
sys/kern/kern_event.c
2617
if (events & (POLLIN | POLLRDNORM)) {
sys/kern/kern_event.c
2620
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/subr_log.c
252
logpoll(dev_t dev, int events, struct lwp *l)
sys/kern/subr_log.c
256
if (events & (POLLIN | POLLRDNORM)) {
sys/kern/subr_log.c
259
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/sys_epoll.c
120
uint32_t levents = l_event->events;
sys/kern/sys_epoll.c
175
l_event->events = EPOLLERR;
sys/kern/sys_epoll.c
182
l_event->events = EPOLLIN;
sys/kern/sys_epoll.c
184
l_event->events |= EPOLLRDHUP;
sys/kern/sys_epoll.c
187
l_event->events = EPOLLOUT;
sys/kern/sys_epoll.c
201
epoll_kev_put_events(void *ctx, struct kevent *events,
sys/kern/sys_epoll.c
210
kevent_to_epoll(events + i, eep + index + i);
sys/kern/sys_epoll.c
382
struct epoll_event *events, int maxevents, struct timespec *tsp,
sys/kern/sys_epoll.c
420
error = kevent1(retval, epfd, NULL, 0, (struct kevent *)events,
sys/kern/sys_epoll.c
451
struct epoll_event *events;
sys/kern/sys_epoll.c
478
events = kmem_alloc(maxevents * sizeof(*events), KM_SLEEP);
sys/kern/sys_epoll.c
480
error = epoll_wait_common(l, retval, SCARG(uap, epfd), events,
sys/kern/sys_epoll.c
483
error = copyout(events, SCARG(uap, events),
sys/kern/sys_epoll.c
484
*retval * sizeof(*events));
sys/kern/sys_epoll.c
486
kmem_free(events, maxevents * sizeof(*events));
sys/kern/sys_eventfd.c
332
eventfd_fop_poll(file_t * const fp, int const events)
sys/kern/sys_eventfd.c
350
if (events & (POLLIN | POLLRDNORM)) {
sys/kern/sys_eventfd.c
352
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/sys_eventfd.c
358
if (events & (POLLOUT | POLLWRNORM)) {
sys/kern/sys_eventfd.c
360
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/sys_mqueue.c
344
mq_poll_fop(file_t *fp, int events)
sys/kern/sys_mqueue.c
352
if (events & (POLLIN | POLLRDNORM)) {
sys/kern/sys_mqueue.c
355
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/sys_mqueue.c
359
if (events & (POLLOUT | POLLWRNORM)) {
sys/kern/sys_mqueue.c
362
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/sys_pipe.c
818
pipe_poll(file_t *fp, int events)
sys/kern/sys_pipe.c
828
if (events & (POLLIN | POLLRDNORM))
sys/kern/sys_pipe.c
831
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/sys_pipe.c
836
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/sys_pipe.c
838
if (events & (POLLOUT | POLLWRNORM))
sys/kern/sys_pipe.c
841
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/sys_pipe.c
850
if (events & (POLLIN | POLLRDNORM))
sys/kern/sys_pipe.c
853
if (events & (POLLOUT | POLLWRNORM))
sys/kern/sys_select.c
698
fds->events | POLLERR | POLLHUP);
sys/kern/sys_select.c
715
seltrue(dev_t dev, int events, lwp_t *l)
sys/kern/sys_select.c
718
return (events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM));
sys/kern/sys_select.c
810
sel_setevents(lwp_t *l, struct selinfo *sip, const int events)
sys/kern/sys_select.c
819
if (__predict_false(events == 0 || oflag == SEL_RESET)) {
sys/kern/sys_select.c
838
(sel_flag[n] & events)) {
sys/kern/sys_select.c
847
int revents = events & (pfd->events | POLLERR | POLLHUP);
sys/kern/sys_select.c
878
selnotify(struct selinfo *sip, int events, long knhint)
sys/kern/sys_select.c
904
} else if (!sel_setevents(l, sip, events)) {
sys/kern/sys_socket.c
232
soo_poll(file_t *fp, int events)
sys/kern/sys_socket.c
235
return sopoll(fp->f_socket, events);
sys/kern/sys_timerfd.c
337
timerfd_fop_poll(file_t * const fp, int const events)
sys/kern/sys_timerfd.c
342
if (events & (POLLIN | POLLRDNORM)) {
sys/kern/sys_timerfd.c
345
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/systrace_args.c
3931
uarg[1] = (intptr_t) SCARG(p, events); /* struct epoll_event * */
sys/kern/tty.c
1549
ttpoll(struct tty *tp, int events, struct lwp *l)
sys/kern/tty.c
1555
if (events & (POLLIN | POLLRDNORM))
sys/kern/tty.c
1557
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/tty.c
1559
if (events & (POLLOUT | POLLWRNORM))
sys/kern/tty.c
1561
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/tty.c
1563
if (events & POLLHUP)
sys/kern/tty.c
1568
if (events & (POLLIN | POLLHUP | POLLRDNORM))
sys/kern/tty.c
1571
if (events & (POLLOUT | POLLWRNORM))
sys/kern/tty_conf.c
161
ttyerrpoll(struct tty *tp, int events, struct lwp *l)
sys/kern/tty_pty.c
505
ptspoll(dev_t dev, int events, struct lwp *l)
sys/kern/tty_pty.c
513
return (*tp->t_linesw->l_poll)(tp, events, l);
sys/kern/tty_pty.c
859
ptcpoll(dev_t dev, int events, struct lwp *l)
sys/kern/tty_pty.c
867
if (events & (POLLIN | POLLRDNORM))
sys/kern/tty_pty.c
872
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/tty_pty.c
874
if (events & (POLLOUT | POLLWRNORM))
sys/kern/tty_pty.c
880
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/tty_pty.c
882
if (events & POLLHUP)
sys/kern/tty_pty.c
887
if (events & (POLLIN | POLLHUP | POLLRDNORM))
sys/kern/tty_pty.c
890
if (events & (POLLOUT | POLLWRNORM))
sys/kern/tty_tty.c
138
cttypoll(dev_t dev, int events, struct lwp *l)
sys/kern/tty_tty.c
143
return (seltrue(dev, events, l));
sys/kern/tty_tty.c
144
return (VOP_POLL(ttyvp, events));
sys/kern/uipc_socket.c
2427
sodopoll(struct socket *so, int events)
sys/kern/uipc_socket.c
2433
if (events & (POLLIN | POLLRDNORM))
sys/kern/uipc_socket.c
2435
revents |= events & (POLLIN | POLLRDNORM);
sys/kern/uipc_socket.c
2437
if (events & (POLLOUT | POLLWRNORM))
sys/kern/uipc_socket.c
2439
revents |= events & (POLLOUT | POLLWRNORM);
sys/kern/uipc_socket.c
2441
if (events & (POLLPRI | POLLRDBAND))
sys/kern/uipc_socket.c
2443
revents |= events & (POLLPRI | POLLRDBAND);
sys/kern/uipc_socket.c
2449
sopoll(struct socket *so, int events)
sys/kern/uipc_socket.c
2459
if ((revents = sodopoll(so, events)) != 0)
sys/kern/uipc_socket.c
2464
if ((revents = sodopoll(so, events)) == 0) {
sys/kern/uipc_socket.c
2465
if (events & (POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND)) {
sys/kern/uipc_socket.c
2470
if (events & (POLLOUT | POLLWRNORM)) {
sys/kern/vfs_vnops.c
116
static int vn_poll(file_t *fp, int events);
sys/kern/vfs_vnops.c
914
vn_poll(file_t *fp, int events)
sys/kern/vfs_vnops.c
917
return VOP_POLL(fp->f_vnode, events);
sys/kern/vnode_if.c
1000
a.a_events = events;
sys/kern/vnode_if.c
992
int events)
sys/lib/libkern/entpool.c
697
compute(uint8_t output[KATLEN], const struct event *events)
sys/lib/libkern/entpool.c
707
if (events[i].t == STOP)
sys/lib/libkern/entpool.c
709
for (j = 0; j < sizeof(events[i].b); j++)
sys/lib/libkern/entpool.c
710
u.b[j] ^= events[i].b[j];
sys/lib/libkern/entpool.c
711
if (events[i].t == OUT) {
sys/miscfs/fifofs/fifo_vnops.c
361
int events;
sys/miscfs/fifofs/fifo_vnops.c
387
events = ap->a_events & (POLLIN | POLLRDNORM);
sys/miscfs/fifofs/fifo_vnops.c
388
if (events != 0 && soreadable(rso)) {
sys/miscfs/fifofs/fifo_vnops.c
389
revents |= events;
sys/miscfs/fifofs/fifo_vnops.c
407
events = ap->a_events & (POLLOUT | POLLWRNORM);
sys/miscfs/fifofs/fifo_vnops.c
408
if (events != 0 && sowritable(wso)) {
sys/miscfs/fifofs/fifo_vnops.c
409
wevents |= events;
sys/miscfs/fifofs/fifo_vnops.c
411
if (wevents == 0 && events != 0) {
sys/modules/examples/pollpal/cmd_pollpal.c
88
fds.events = POLLOUT|POLLIN;
sys/modules/examples/pollpal/pollpal.c
265
pollpal_poll(struct file *fp, int events)
sys/modules/examples/pollpal/pollpal.c
275
if (events & (POLLOUT | POLLWRNORM)) {
sys/modules/examples/pollpal/pollpal.c
284
if (events & (POLLIN | POLLRDNORM)) {
sys/net/bpf.c
1547
bpf_poll(struct file *fp, int events)
sys/net/bpf.c
1558
revents = events & (POLLOUT | POLLWRNORM);
sys/net/bpf.c
1559
if (events & (POLLIN | POLLRDNORM)) {
sys/net/bpf.c
1568
revents |= events & (POLLIN | POLLRDNORM);
sys/net/if_gre.c
374
gre_receive(struct socket *so, void *arg, int events, int waitflag)
sys/net/if_tap.c
1099
tap_cdev_poll(dev_t dev, int events, struct lwp *l)
sys/net/if_tap.c
1102
return tap_dev_poll(minor(dev), events, l);
sys/net/if_tap.c
1106
tap_fops_poll(file_t *fp, int events)
sys/net/if_tap.c
1109
return tap_dev_poll(fp->f_devunit, events, curlwp);
sys/net/if_tap.c
1113
tap_dev_poll(int unit, int events, struct lwp *l)
sys/net/if_tap.c
1121
if (events & (POLLIN | POLLRDNORM)) {
sys/net/if_tap.c
1130
revents |= events & (POLLIN | POLLRDNORM);
sys/net/if_tap.c
1138
revents |= events & (POLLOUT | POLLWRNORM);
sys/net/if_tun.c
1029
tunpoll(dev_t dev, int events, struct lwp *l)
sys/net/if_tun.c
1044
if (events & (POLLIN | POLLRDNORM)) {
sys/net/if_tun.c
1048
revents |= events & (POLLIN | POLLRDNORM);
sys/net/if_tun.c
1055
if (events & (POLLOUT | POLLWRNORM))
sys/net/if_tun.c
1056
revents |= events & (POLLOUT | POLLWRNORM);
sys/net/if_wg.c
3806
wg_so_upcall(struct socket *so, void *cookie, int events, int waitflag)
sys/net/npf/npf_os.c
317
npf_dev_poll(dev_t dev, int events, lwp_t *l)
sys/netinet/accf_data.c
49
static void sohasdata(struct socket *so, void *arg, int events, int waitflag);
sys/netinet/accf_data.c
79
sohasdata(struct socket *so, void *arg, int events, int waitflag)
sys/netinet/accf_http.c
215
sohashttpget(struct socket *so, void *arg, int events, int waitflag)
sys/netinet/accf_http.c
249
soishttpconnected(so, arg, events, waitflag);
sys/netinet/accf_http.c
251
soparsehttpvers(so, arg, events, waitflag);
sys/netinet/accf_http.c
266
soparsehttpvers(struct socket *so, void *arg, int events, int waitflag)
sys/netinet/accf_http.c
319
arg, events, waitflag);
sys/netinet/accf_http.c
351
soishttpconnected(struct socket *so, void *arg, int events, int waitflag)
sys/netinet/accf_http.c
51
static void sohashttpget(struct socket *so, void *arg, int events, int waitflag);
sys/netinet/accf_http.c
53
static void soparsehttpvers(struct socket *so, void *arg, int events, int waitflag);
sys/netinet/accf_http.c
55
static void soishttpconnected(struct socket *so, void *arg, int events, int waitflag);
sys/netinet/sctp_usrreq.c
1610
struct sctp_event_subscribe *events;
sys/netinet/sctp_usrreq.c
1627
events = sopt->sopt_data;
sys/netinet/sctp_usrreq.c
1628
memset(events, 0, sopt->sopt_size);
sys/netinet/sctp_usrreq.c
1631
events->sctp_data_io_event = 1;
sys/netinet/sctp_usrreq.c
1634
events->sctp_association_event = 1;
sys/netinet/sctp_usrreq.c
1637
events->sctp_address_event = 1;
sys/netinet/sctp_usrreq.c
1640
events->sctp_send_failure_event = 1;
sys/netinet/sctp_usrreq.c
1643
events->sctp_peer_error_event = 1;
sys/netinet/sctp_usrreq.c
1646
events->sctp_shutdown_event = 1;
sys/netinet/sctp_usrreq.c
1649
events->sctp_partial_delivery_event = 1;
sys/netinet/sctp_usrreq.c
1652
events->sctp_adaption_layer_event = 1;
sys/netinet/sctp_usrreq.c
1655
events->sctp_stream_reset_events = 1;
sys/netinet/sctp_usrreq.c
2668
struct sctp_event_subscribe *events;
sys/netinet/sctp_usrreq.c
2674
events = sopt->sopt_data;
sys/netinet/sctp_usrreq.c
2675
if (events->sctp_data_io_event) {
sys/netinet/sctp_usrreq.c
2681
if (events->sctp_association_event) {
sys/netinet/sctp_usrreq.c
2687
if (events->sctp_address_event) {
sys/netinet/sctp_usrreq.c
2693
if (events->sctp_send_failure_event) {
sys/netinet/sctp_usrreq.c
2699
if (events->sctp_peer_error_event) {
sys/netinet/sctp_usrreq.c
2705
if (events->sctp_shutdown_event) {
sys/netinet/sctp_usrreq.c
2711
if (events->sctp_partial_delivery_event) {
sys/netinet/sctp_usrreq.c
2717
if (events->sctp_adaption_layer_event) {
sys/netinet/sctp_usrreq.c
2723
if (events->sctp_stream_reset_events) {
sys/nfs/nfs_srvsocket.c
113
nfsrv_soupcall(struct socket *so, void *arg, int events, int waitflag)
sys/opencrypto/cryptodev.c
2014
cryptof_poll(struct file *fp, int events)
sys/opencrypto/cryptodev.c
2019
if (!(events & (POLLIN | POLLRDNORM))) {
sys/opencrypto/cryptodev.c
2030
revents = events & (POLLIN | POLLRDNORM);
sys/rump/librump/rumpkern/cons.c
153
rumpcons_poll(struct file *fp, int events)
sys/rump/librump/rumpkern/cons.c
157
if (events & (POLLOUT | POLLWRNORM))
sys/rump/librump/rumpkern/cons.c
158
revents |= events & (POLLOUT | POLLWRNORM);
sys/rump/librump/rumpkern/cons.c
60
static int rumpcons_poll(struct file *, int events);
sys/rump/librump/rumpvfs/rumpvnode_if.c
301
int events)
sys/rump/librump/rumpvfs/rumpvnode_if.c
306
error = VOP_POLL(vp, events);
sys/rump/net/lib/libsockin/sockin.c
366
pfds[i].events = POLLIN;
sys/rump/net/lib/libvirtif/virtif_user.c
138
pfd[0].events = POLLIN;
sys/rump/net/lib/libvirtif/virtif_user.c
140
pfd[1].events = POLLIN;
sys/rump/net/lib/libwg/wg_user.c
136
pfd[0].events = POLLIN;
sys/rump/net/lib/libwg/wg_user.c
138
pfd[1].events = POLLIN;
sys/rump/net/lib/libwg/wg_user.c
140
pfd[2].events = POLLIN;
sys/rump/net/lib/libwg/wg_user.c
142
pfd[3].events = POLLIN;
sys/sys/epoll.h
77
uint32_t events;
sys/sys/epoll.h
85
struct epoll_event *events, int maxevents, struct timespec *tsp,
sys/sys/epoll.h
93
int epoll_wait(int epfd, struct epoll_event *events, int maxevents,
sys/sys/epoll.h
95
int epoll_pwait(int epfd, struct epoll_event *events, int maxevents,
sys/sys/epoll.h
97
int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents,
sys/sys/poll.h
41
short events; /* events to look for */
sys/sys/syscallargs.h
3397
syscallarg(struct epoll_event *) events;
tests/compat/linux/h_inotify_single_file.c
44
struct linux_inotify_event events[10];
tests/compat/linux/h_inotify_single_file.c
69
RS(read(fd, events, sizeof(events)));
tests/compat/linux/h_inotify_single_file.c
71
for (size_t i = 0; i < __arraycount(events); i++)
tests/compat/linux/h_inotify_single_file.c
72
REQUIRE(events[i].wd == wd && events[i].cookie == 0
tests/compat/linux/h_inotify_single_file.c
73
&& events[i].len == 0);
tests/compat/linux/h_inotify_single_file.c
75
REQUIRE(events[0].mask == LINUX_IN_OPEN);
tests/compat/linux/h_inotify_single_file.c
76
REQUIRE(events[1].mask == LINUX_IN_MODIFY);
tests/compat/linux/h_inotify_single_file.c
77
REQUIRE(events[2].mask == LINUX_IN_ACCESS);
tests/compat/linux/h_inotify_single_file.c
78
REQUIRE(events[3].mask == LINUX_IN_CLOSE_WRITE);
tests/compat/linux/h_inotify_single_file.c
79
REQUIRE(events[4].mask == LINUX_IN_OPEN);
tests/compat/linux/h_inotify_single_file.c
80
REQUIRE(events[5].mask == LINUX_IN_CLOSE_NOWRITE);
tests/compat/linux/h_inotify_single_file.c
81
REQUIRE(events[6].mask == LINUX_IN_MOVE_SELF);
tests/compat/linux/h_inotify_single_file.c
82
REQUIRE(events[7].mask == LINUX_IN_ATTRIB);
tests/compat/linux/h_inotify_single_file.c
83
REQUIRE(events[8].mask == LINUX_IN_DELETE_SELF);
tests/compat/linux/h_inotify_single_file.c
84
REQUIRE(events[9].mask == LINUX_IN_IGNORED);
tests/compat/linux/h_inotify_watch_change.c
39
struct linux_inotify_event events[2];
tests/compat/linux/h_inotify_watch_change.c
58
RS(nread = read(fd, events, sizeof(events)));
tests/compat/linux/h_inotify_watch_change.c
59
REQUIRE(nread == sizeof(events[0]));
tests/compat/linux/h_inotify_watch_change.c
60
REQUIRE(events[0].mask == LINUX_IN_CLOSE_NOWRITE);
tests/compat/linux/h_inotify_watch_change.c
70
RS(nread = read(fd, events, sizeof(events)));
tests/compat/linux/h_inotify_watch_change.c
71
REQUIRE(nread == sizeof(events[0]));
tests/compat/linux/h_inotify_watch_change.c
72
REQUIRE(events[0].mask == LINUX_IN_OPEN);
tests/compat/linux/h_inotify_watch_change.c
82
RS(nread = read(fd, events, sizeof(events)));
tests/compat/linux/h_inotify_watch_change.c
83
REQUIRE(nread == 2 * sizeof(events[0]));
tests/compat/linux/h_inotify_watch_change.c
84
REQUIRE(events[0].mask == LINUX_IN_OPEN);
tests/compat/linux/h_inotify_watch_change.c
85
REQUIRE(events[1].mask == LINUX_IN_CLOSE_NOWRITE);
tests/crypto/opencrypto/h_ioctl.c
67
struct pollfd pfd = { .fd = fd, .events = POLLIN };
tests/dev/audio/audiotest.c
1124
event_tostr(int events)
tests/dev/audio/audiotest.c
1133
events);
tests/dev/audio/audiotest.c
1146
pfd[i].fd, event_tostr(pfd[i].events));
tests/dev/audio/audiotest.c
2914
test_poll_mode(int mode, int events, int expected_revents)
tests/dev/audio/audiotest.c
2922
if (events == IN) {
tests/dev/audio/audiotest.c
2924
} else if (events == OUT) {
tests/dev/audio/audiotest.c
2926
} else if (events == (IN | OUT)) {
tests/dev/audio/audiotest.c
2947
pfd.events = events;
tests/dev/audio/audiotest.c
3006
pfd.events = POLLOUT;
tests/dev/audio/audiotest.c
3059
pfd.events = POLLOUT;
tests/dev/audio/audiotest.c
3119
pfd.events = POLLOUT;
tests/dev/audio/audiotest.c
3210
pfd.events = POLLOUT;
tests/dev/audio/audiotest.c
3345
pfd[0].events = POLLOUT;
tests/dev/audio/audiotest.c
3361
pfd[0].events = POLLOUT;
tests/dev/audio/audiotest.c
3363
pfd[1].events = POLLOUT;
tests/dev/audio/audiotest.c
3430
pfd.events = POLLIN;
tests/dev/audio/audiotest.c
3507
pfd.events = POLLIN;
tests/dev/audio/audiotest.c
7108
pfd.events = POLLOUT;
tests/fs/puffs/h_dtfs/dtfs_vnops.c
281
dtfs_node_poll(struct puffs_usermount *pu, void *opc, int *events)
tests/fs/puffs/h_dtfs/dtfs_vnops.c
296
*events = *events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM);
tests/fs/puffs/t_fuzz.c
188
pfd.events = POLLIN;
tests/kernel/kqueue/read/t_ttypty.c
88
pfd.events = POLLIN;
tests/kernel/kqueue/t_sig.c
142
struct kevent events[3];
tests/kernel/kqueue/t_sig.c
160
EV_SET(&events[0], SIGUSR1, EVFILT_SIGNAL, EV_ADD, 0, 0, NULL);
tests/kernel/kqueue/t_sig.c
161
EV_SET(&events[1], SIGUSR2, EVFILT_SIGNAL, EV_ADD, 0, 0, NULL);
tests/kernel/kqueue/t_sig.c
163
ATF_REQUIRE(kevent(kq, events, 2, &events[2], 1, NULL) == 1);
tests/kernel/kqueue/t_sig.c
164
ATF_REQUIRE(events[2].filter == EVFILT_SIGNAL);
tests/kernel/kqueue/t_sig.c
165
ATF_REQUIRE(events[2].ident == SIGUSR1);
tests/kernel/kqueue/t_sig.c
189
EV_SET(&events[0], pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL);
tests/kernel/kqueue/t_sig.c
191
ATF_REQUIRE(kevent(kq, events, 1, NULL, 0, NULL) == 0);
tests/kernel/kqueue/t_sig.c
194
memset(events, 0, sizeof(events));
tests/kernel/kqueue/t_sig.c
199
ATF_REQUIRE(kevent(kq, NULL, 0, events, 1, NULL) == 1);
tests/kernel/kqueue/t_sig.c
200
ATF_REQUIRE(events[0].filter == EVFILT_PROC);
tests/kernel/kqueue/t_sig.c
201
ATF_REQUIRE(events[0].ident == (uintptr_t)pid);
tests/kernel/kqueue/t_sig.c
202
ATF_REQUIRE(events[0].fflags == NOTE_EXIT);
tests/kernel/kqueue/write/t_ttypty.c
79
pfd.events = POLLOUT;
tests/kernel/t_epoll.c
117
event.events = EPOLLIN;
tests/kernel/t_epoll.c
138
event.events = EPOLLIN;
tests/kernel/t_epoll.c
161
event.events = EPOLLIN;
tests/kernel/t_epoll.c
201
event.events = EPOLLIN;
tests/kernel/t_epoll.c
222
event.events = EPOLLIN;
tests/kernel/t_epoll.c
97
event.events = EPOLLIN;
tests/kernel/t_pty.c
208
pfd.events = POLLIN;
tests/kernel/t_signal_and_sp.c
115
pollfd.events = POLLIN;
tests/lib/libc/sys/t_eventfd.c
291
fds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI |
tests/lib/libc/sys/t_eventfd.c
332
fds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI |
tests/lib/libc/sys/t_eventfd.c
379
fds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI;
tests/lib/libc/sys/t_eventfd.c
399
fds[0].events = POLLOUT | POLLWRNORM;
tests/lib/libc/sys/t_poll.c
173
pfds[0].events = POLLIN;
tests/lib/libc/sys/t_poll.c
175
pfds[1].events = POLLOUT;
tests/lib/libc/sys/t_poll.c
236
pfd.events = POLLIN;
tests/lib/libc/sys/t_poll.c
294
pfd[0].events = POLLIN | POLLRDNORM;
tests/lib/libc/sys/t_poll.c
296
pfd[1].events = POLLOUT | POLLWRNORM;
tests/lib/libc/sys/t_poll.c
415
pfd.events = POLLIN;
tests/lib/libc/sys/t_poll.c
432
pfd.events = POLLIN;
tests/lib/libc/sys/t_poll.c
467
pfd.events = POLLIN;
tests/lib/libc/sys/t_poll.c
557
struct pollfd pfd = { .fd = writefd, .events = POLLOUT };
tests/lib/libc/sys/t_poll.c
60
pfd.events = POLLIN | POLLHUP | POLLOUT;
tests/lib/libc/sys/t_poll.c
641
pfd = (struct pollfd) { .fd = readfd, .events = POLLIN };
tests/lib/libc/sys/t_poll.c
683
pfd = (struct pollfd) { .fd = readfd, .events = POLLIN };
tests/lib/libc/sys/t_poll.c
72
pfd.events = POLLIN | POLLHUP | POLLOUT;
tests/lib/libc/sys/t_poll.c
785
struct pollfd pfd = { .fd = writefd, .events = POLLOUT };
tests/lib/libc/sys/t_poll.c
821
struct pollfd pfd = { .fd = readfd, .events = POLLIN };
tests/lib/libc/sys/t_poll.c
87
pfd.events = POLLIN | POLLHUP | POLLOUT;
tests/lib/libc/sys/t_poll.c
873
pfd = (struct pollfd) { .fd = readfd, .events = POLLIN };
tests/lib/libc/sys/t_poll.c
900
pfd = (struct pollfd) { .fd = readfd, .events = POLLIN };
tests/lib/libc/sys/t_poll.c
919
pfd = (struct pollfd) { .fd = readfd, .events = POLLIN };
tests/lib/libc/sys/t_pollts.c
133
pfd.events = POLLIN;
tests/lib/libc/sys/t_pollts.c
168
pfd.events = POLLIN;
tests/lib/libc/sys/t_pollts.c
66
pfds[0].events = POLLIN;
tests/lib/libc/sys/t_pollts.c
68
pfds[1].events = POLLOUT;
tests/lib/libc/sys/t_timerfd.c
536
fds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI |
tests/lib/libc/sys/t_timerfd.c
573
fds[0].events = POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI |
tests/lib/libc/sys/t_timerfd.c
657
fds[0].events = POLLIN | POLLRDNORM;
tests/lib/libcurses/director/testlang_parse.y
1115
fds[0].events = POLLIN;
tests/lib/libcurses/director/testlang_parse.y
1117
fds[1].events = POLLOUT;
tests/lib/libcurses/director/testlang_parse.y
1158
fds[0].events = POLLIN;
tests/lib/libcurses/director/testlang_parse.y
1161
fds[1].events = POLLOUT;
tests/lib/libcurses/director/testlang_parse.y
1164
fds[2].events = POLLIN | POLLOUT;
tests/lib/libcurses/director/testlang_parse.y
1461
slave_pty.events = POLLIN;
tests/lib/libcurses/director/testlang_parse.y
2021
rfd[0].events = POLLIN;
tests/lib/libcurses/director/testlang_parse.y
2023
rfd[1].events = POLLIN;
tests/lib/libcurses/director/testlang_parse.y
945
fds[0].events = create_check_file ? POLLOUT:POLLIN;
tests/lib/libcurses/director/testlang_parse.y
947
fds[1].events = POLLIN;
tests/lib/libpthread/t_cancellation.c
471
pfd.events = POLLIN;
tests/lib/libpthread/t_cancellation.c
501
pfd.events = POLLIN;
tests/lib/libpthread/t_compat_cancel.c
190
pfd.events = POLLIN;
tests/lib/librumphijack/h_client.c
108
pfd[0].events = POLLIN;
tests/lib/librumphijack/h_client.c
110
pfd[1].events = POLLIN;
tests/net/fdpass/fdpass.c
126
pfd.events = POLLIN;
tests/net/fdpass/fdpass.c
80
pfd.events = POLLOUT;
tests/net/if_vlan/bpfopen.c
240
pfd[PFD_BPF].events = POLLIN;
tests/net/mcast/mcast.c
247
pfd.events = POLLIN;
tests/net/mcast/mcast.c
323
pfd.events = POLLIN;
tests/net/net/t_socket_afinet.c
165
pfd.events = POLLIN | POLLOUT;
tests/net/net/t_socket_afinet.c
180
pfd.events = POLLIN;
tests/net/net/t_socket_afinet.c
227
pfd.events = POLLIN | POLLOUT | POLLRDHUP;
tests/net/net/t_socket_afinet.c
240
pfd.events = POLLIN | POLLOUT | POLLRDHUP;
tests/net/net/t_socket_afinet.c
261
pfd.events = POLLRDHUP;
tests/net/net/t_unix.c
513
pfd = (struct pollfd){.fd = conn, .events = POLLOUT};
usr.bin/ftp/ftp.c
1754
pfd[0].events = POLLIN;
usr.bin/ftp/ftp.c
560
pfd[nfd++].events = POLLIN;
usr.bin/ftp/ftp.c
565
pfd[nfd++].events = POLLIN;
usr.bin/ftp/ssl.c
106
pfd[0].events = POLLOUT;
usr.bin/ftp/ssl.c
369
pfd[0].events = POLLIN;
usr.bin/ftp/ssl.c
371
pfd[0].events = POLLOUT;
usr.bin/ftp/ssl.c
373
pfd[0].events = 0;
usr.bin/ftp/ssl.c
673
pfd[0].events = 0;
usr.bin/ftp/ssl.c
683
pfd[0].events = POLLIN;
usr.bin/ftp/ssl.c
685
pfd[0].events = POLLOUT;
usr.bin/ftp/util.c
1395
pfd[0].events = POLLIN|POLLOUT;
usr.bin/make/job.c
141
short events;
usr.bin/make/job.c
2079
fds[i].events = 0; /* never mind */
usr.bin/make/job.c
2554
fds[fdsLen].events = POLLIN;
usr.bin/make/job.c
2561
fds[fdsLen].events = fds[fdsLen].fd == -1 ? 0 : POLLIN;
usr.bin/make/job.c
2783
if (fd[i].events & POLLIN)
usr.bin/make/job.c
2786
if (fd[i].events & POLLOUT)
usr.bin/nc/atomicio.c
49
pfd.events = f == read ? POLLIN : POLLOUT;
usr.bin/nc/netcat.c
1020
pfd.events = POLLOUT;
usr.bin/nc/netcat.c
1117
pfd[POLL_STDIN].events = POLLIN;
usr.bin/nc/netcat.c
1121
pfd[POLL_NETOUT].events = 0;
usr.bin/nc/netcat.c
1125
pfd[POLL_NETIN].events = POLLIN;
usr.bin/nc/netcat.c
1129
pfd[POLL_STDOUT].events = 0;
usr.bin/nc/netcat.c
1131
while (!done || pfd[POLL_STDOUT].events == POLLOUT) {
usr.bin/nc/netcat.c
1176
if (pfd[POLL_STDIN].events & POLLIN &&
usr.bin/nc/netcat.c
1181
if (pfd[POLL_NETIN].events & POLLIN &&
usr.bin/nc/netcat.c
1210
pfd[POLL_STDIN].events = POLLIN;
usr.bin/nc/netcat.c
1212
pfd[POLL_STDIN].events = POLLOUT;
usr.bin/nc/netcat.c
1217
pfd[POLL_NETOUT].events = POLLOUT;
usr.bin/nc/netcat.c
1220
pfd[POLL_STDIN].events = 0;
usr.bin/nc/netcat.c
1228
pfd[POLL_NETOUT].events = POLLIN;
usr.bin/nc/netcat.c
1230
pfd[POLL_NETOUT].events = POLLOUT;
usr.bin/nc/netcat.c
1235
pfd[POLL_NETOUT].events = 0;
usr.bin/nc/netcat.c
1238
pfd[POLL_STDIN].events = POLLIN;
usr.bin/nc/netcat.c
1249
pfd[POLL_NETIN].events = POLLIN;
usr.bin/nc/netcat.c
1251
pfd[POLL_NETIN].events = POLLOUT;
usr.bin/nc/netcat.c
1261
pfd[POLL_STDOUT].events = POLLOUT;
usr.bin/nc/netcat.c
1264
pfd[POLL_NETIN].events = 0;
usr.bin/nc/netcat.c
1277
pfd[POLL_STDOUT].events = POLLIN;
usr.bin/nc/netcat.c
1279
pfd[POLL_STDOUT].events = POLLOUT;
usr.bin/nc/netcat.c
1284
pfd[POLL_STDOUT].events = 0;
usr.bin/nc/netcat.c
1287
pfd[POLL_NETIN].events = POLLIN;
usr.bin/nc/netcat.c
1399
pfd.events = POLLOUT;
usr.bin/rfcomm_sppd/rfcomm_sppd.c
268
pfd[0].events = POLLIN|POLLRDNORM;
usr.bin/rfcomm_sppd/rfcomm_sppd.c
269
pfd[1].events = POLLIN|POLLRDNORM;
usr.bin/rsh/rsh.c
345
fdp->events = POLLOUT|POLLNVAL|POLLERR|POLLHUP;
usr.bin/rsh/rsh.c
397
fds[0].events = 0;
usr.bin/rsh/rsh.c
402
fds[0].events = POLLIN|POLLNVAL|POLLERR|POLLHUP;
usr.bin/rsh/rsh.c
407
fds[1].events = fds[2].events = POLLIN|POLLNVAL|POLLERR|POLLHUP;
usr.bin/rsh/rsh.c
416
if ((fds[1].events != 0 && checkfd(&fds[1], 2) == -1)
usr.bin/rsh/rsh.c
418
|| (fds[0].events != 0 && checkfd(&fds[0], remerr) == -1)
usr.bin/rsh/rsh.c
422
fds[1].events = 0;
usr.bin/rsh/rsh.c
426
fds[0].events = 0;
usr.bin/rsh/rsh.c
431
if (fds[2].events != 0 && checkfd(&fds[2], 1) == -1) {
usr.bin/rsh/rsh.c
433
fds[2].events = 0;
usr.bin/rump_dhcpclient/main.c
137
pfd.events = POLLIN;
usr.bin/talk/ctl_transact.c
65
set[0].events = POLLIN;
usr.bin/talk/io.c
75
set[0].events = POLLIN;
usr.bin/talk/io.c
77
set[1].events = POLLIN;
usr.bin/telnet/network.c
87
set[0].events = POLLPRI;
usr.bin/telnet/sys_bsd.c
565
set[0].events = (netout ? POLLOUT : 0) | (netin ? POLLIN : 0) |
usr.bin/telnet/sys_bsd.c
568
set[1].events = ttyout ? POLLOUT : 0;
usr.bin/telnet/sys_bsd.c
570
set[2].events = ttyin ? POLLIN : 0;
usr.bin/telnet/utilities.c
841
set[0].events = POLLOUT;
usr.bin/tip/tipout.c
134
pfd[0].events = POLLIN;
usr.bin/tip/tipout.c
136
pfd[1].events = POLLIN|POLLHUP;
usr.sbin/apmd/apmd.c
422
set[0].events = POLLIN;
usr.sbin/apmd/apmd.c
424
set[1].events = POLLIN;
usr.sbin/bootp/bootpd/bootpd.c
483
set[0].events = POLLIN;
usr.sbin/bootp/bootpgw/bootpgw.c
425
set[0].events = POLLIN;
usr.sbin/bootp/bootptest/bootptest.c
382
set[0].events = POLLIN;
usr.sbin/faithd/faithd.c
358
pfd[0].events = POLLIN;
usr.sbin/faithd/faithd.c
364
pfd[1].events = POLLIN;
usr.sbin/faithd/ftp.c
104
pfd[5].events = POLLIN;
usr.sbin/faithd/ftp.c
109
pfd[4].events = pfd[5].events = 0;
usr.sbin/faithd/ftp.c
243
pfd[0].events = POLLIN;
usr.sbin/faithd/ftp.c
289
pfd[0].events = POLLIN;
usr.sbin/faithd/ftp.c
83
pfd[0].events = POLLIN;
usr.sbin/faithd/ftp.c
85
pfd[1].events = POLLIN;
usr.sbin/faithd/ftp.c
88
pfd[2].events = POLLIN;
usr.sbin/faithd/ftp.c
93
pfd[3].events = POLLIN;
usr.sbin/faithd/ftp.c
99
pfd[4].events = POLLIN;
usr.sbin/isibootd/isibootd.c
184
pollfd.events = POLLIN;
usr.sbin/ldpd/mpls_routes.c
113
pfd.events = POLLRDNORM;
usr.sbin/ldpd/socketops.c
862
pfd[0].events = POLLRDNORM;
usr.sbin/ldpd/socketops.c
866
pfd[1].events = POLLRDNORM;
usr.sbin/ldpd/socketops.c
870
pfd[2].events = POLLRDNORM;
usr.sbin/ldpd/socketops.c
877
pfd[pollsum].events = POLLIN;
usr.sbin/ldpd/socketops.c
888
pfd[pollsum].events = POLLIN;
usr.sbin/ldpd/socketops.c
903
pfd[pollsum].events = POLLRDNORM;
usr.sbin/ldpd/socketops.c
911
pfd[pollsum].events = POLLWRNORM;
usr.sbin/lpr/lpd/lpd.c
740
socks[*nfds].events = POLLIN;
usr.sbin/lpr/lpd/lpd.c
808
socks[*nfds].events = POLLIN;
usr.sbin/map-mbone/mapper.c
910
set[0].events = POLLIN;
usr.sbin/mld6query/mld6.c
145
set[0].events = POLLIN;
usr.sbin/mopd/common/loop-bsd.c
127
set[m].events = POLLIN;
usr.sbin/moused/moused.c
1334
set[0].events = POLLIN;
usr.sbin/moused/moused.c
1388
set[0].events = POLLIN;
usr.sbin/moused/moused.c
2388
set[0].events = POLLIN;
usr.sbin/moused/moused.c
2441
set[0].events = POLLIN;
usr.sbin/moused/moused.c
2493
set[0].events = POLLIN;
usr.sbin/moused/moused.c
897
set[0].events = POLLIN;
usr.sbin/moused/moused.c
899
set[1].events = POLLIN;
usr.sbin/moused/moused.c
901
set[2].events = POLLIN;
usr.sbin/mrinfo/mrinfo.c
439
set[0].events = POLLIN;
usr.sbin/mtrace/mtrace.c
460
set[0].events = POLLIN;
usr.sbin/ndbootd/config/ndbootd-bpf.c
218
set[0].events = POLLIN;
usr.sbin/nfsd/nfsd.c
541
set[i].events = POLLIN;
usr.sbin/npf/npfd/npfd.c
81
pfd.events = POLLHUP | POLLIN;
usr.sbin/powerd/powerd.c
164
rv = wait_for_events(events, __arraycount(events));
usr.sbin/powerd/powerd.c
166
handler = (void *) events[i].udata;
usr.sbin/powerd/powerd.c
167
(*handler)(&events[i]);
usr.sbin/powerd/powerd.c
265
wait_for_events(struct kevent *events, size_t nevents)
usr.sbin/powerd/powerd.c
270
events, nevents, NULL)) < 0) {
usr.sbin/powerd/powerd.c
88
struct kevent *ev, events[16];
usr.sbin/rbootd/rbootd.c
204
set[0].events = POLLIN;
usr.sbin/route6d/route6d.c
612
set[0].events = POLLIN;
usr.sbin/route6d/route6d.c
619
set[1].events = POLLIN;
usr.sbin/rpcbind/rpcb_svc_com.c
1138
p->events = MASKVAL;
usr.sbin/rpcbind/rpcb_svc_com.c
1149
if (p->events)
usr.sbin/rtadvd/rtadvd.c
277
set[0].events = POLLIN;
usr.sbin/rtadvd/rtadvd.c
281
set[1].events = POLLIN;
usr.sbin/rwhod/rwhod.c
228
pfd[0].events = POLLIN;
usr.sbin/syslogd/syslogd.c
4910
pfd.events = POLLOUT;
usr.sbin/timed/timed/measure.c
106
set[0].events = POLLIN;
usr.sbin/timed/timed/readmsg.c
175
set[0].events = POLLIN;
usr.sbin/timed/timedc/cmds.c
143
set[0].events = POLLIN;
usr.sbin/timed/timedc/cmds.c
329
set[0].events = POLLIN;
usr.sbin/timed/timedc/cmds.c
478
set[0].events = POLLIN;
usr.sbin/tprof/arch/tprof_armv7.c
104
events = &pmu_armv7;
usr.sbin/tprof/arch/tprof_armv7.c
116
printf("\t%s\n", tbl->events[n].name);
usr.sbin/tprof/arch/tprof_armv7.c
126
tprof_event_list_table(events);
usr.sbin/tprof/arch/tprof_armv7.c
136
if (strcmp(tbl->events[n].name, name) == 0) {
usr.sbin/tprof/arch/tprof_armv7.c
137
param->p_event = tbl->events[n].event;
usr.sbin/tprof/arch/tprof_armv7.c
152
tprof_event_lookup_table(name, param, events);
usr.sbin/tprof/arch/tprof_armv7.c
48
struct pmu_event *events;
usr.sbin/tprof/arch/tprof_armv7.c
91
.events = pmu_armv7_common_events,
usr.sbin/tprof/arch/tprof_armv7.c
96
static struct pmu_event_table *events = NULL;
usr.sbin/tprof/arch/tprof_armv8.c
118
.events = pmu_armv8_common_events,
usr.sbin/tprof/arch/tprof_armv8.c
123
static struct pmu_event_table *events = NULL;
usr.sbin/tprof/arch/tprof_armv8.c
131
events = &pmu_armv8;
usr.sbin/tprof/arch/tprof_armv8.c
143
printf("\t%s\n", tbl->events[n].name);
usr.sbin/tprof/arch/tprof_armv8.c
153
tprof_event_list_table(events);
usr.sbin/tprof/arch/tprof_armv8.c
163
if (strcmp(tbl->events[n].name, name) == 0) {
usr.sbin/tprof/arch/tprof_armv8.c
164
param->p_event = tbl->events[n].event;
usr.sbin/tprof/arch/tprof_armv8.c
179
tprof_event_lookup_table(name, param, events);
usr.sbin/tprof/arch/tprof_armv8.c
48
struct pmu_event *events;
usr.sbin/traceroute/traceroute.c
1079
set[0].events = POLLIN;
usr.sbin/traceroute6/traceroute6.c
754
pfd[0].events = POLLIN;
usr.sbin/wsmoused/wsmoused.c
312
fds[0].events = POLLIN;
usr.sbin/wsmoused/wsmoused.c
316
fds[1].events = POLLIN;