Lines Matching refs:nevents
164 unsigned int nevents; in uv__io_poll() local
190 nevents = 0; in uv__io_poll()
214 EV_SET(events + nevents, w->fd, filter, op, fflags, 0, 0); in uv__io_poll()
216 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll()
217 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
219 nevents = 0; in uv__io_poll()
224 EV_SET(events + nevents, w->fd, EVFILT_WRITE, EV_ADD, 0, 0, 0); in uv__io_poll()
226 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll()
227 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
229 nevents = 0; in uv__io_poll()
234 EV_SET(events + nevents, w->fd, EV_OOBAND, EV_ADD, 0, 0, 0); in uv__io_poll()
236 if (++nevents == ARRAY_SIZE(events)) { in uv__io_poll()
237 if (kevent(loop->backend_fd, events, nevents, NULL, 0, NULL)) in uv__io_poll()
239 nevents = 0; in uv__io_poll()
265 for (;; nevents = 0) { in uv__io_poll()
288 nevents, in uv__io_poll()
330 nevents = 0; in uv__io_poll()
349 nevents++; in uv__io_poll()
370 nevents++; in uv__io_poll()
380 nevents++; in uv__io_poll()
426 nevents++; in uv__io_poll()
434 uv__metrics_inc_events(loop, nevents); in uv__io_poll()
438 uv__metrics_inc_events_waiting(loop, nevents); in uv__io_poll()
452 if (nevents != 0) { in uv__io_poll()