Lines Matching refs:events

161   struct kevent events[1024];  in uv__io_poll()  local
202 if ((w->events & POLLIN) == 0 && (w->pevents & POLLIN) != 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()
223 if ((w->events & POLLOUT) == 0 && (w->pevents & POLLOUT) != 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()
233 if ((w->events & UV__POLLPRI) == 0 && (w->pevents & UV__POLLPRI) != 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()
243 w->events = w->pevents; in uv__io_poll()
287 events, in uv__io_poll()
289 events, in uv__io_poll()
290 ARRAY_SIZE(events), in uv__io_poll()
333 loop->watchers[loop->nwatchers] = (void*) events; in uv__io_poll()
336 ev = events + i; in uv__io_poll()
369 w->cb(loop, w, w->events); in uv__io_poll()
376 assert(w->events == POLLIN); in uv__io_poll()
453 if (nfds == ARRAY_SIZE(events) && --count != 0) { in uv__io_poll()
480 struct kevent* events; in uv__platform_invalidate_fd() local
487 events = (struct kevent*) loop->watchers[loop->nwatchers]; in uv__platform_invalidate_fd()
489 if (events == NULL) in uv__platform_invalidate_fd()
494 if ((int) events[i].ident == fd && events[i].filter != EVFILT_PROC) in uv__platform_invalidate_fd()
495 events[i].ident = -1; in uv__platform_invalidate_fd()
502 int events; in uv__fs_event() local
512 events = UV_CHANGE; in uv__fs_event()
514 events = UV_RENAME; in uv__fs_event()
545 handle->cb(handle, path, events, 0); in uv__fs_event()