Lines Matching refs:ev
100 struct kevent ev[2]; in uv__io_check_fd() local
135 EV_SET(ev, fd, EVFILT_READ, EV_ADD, 0, 0, 0); in uv__io_check_fd()
136 EV_SET(ev + 1, fd, EVFILT_READ, EV_DELETE, 0, 0, 0); in uv__io_check_fd()
137 if (kevent(loop->backend_fd, ev, 2, NULL, 0, NULL)) in uv__io_check_fd()
144 static void uv__kqueue_delete(int kqfd, const struct kevent *ev) { in uv__kqueue_delete() argument
147 EV_SET(&change, ev->ident, ev->filter, EV_DELETE, 0, 0, 0); in uv__kqueue_delete()
162 struct kevent* ev; in uv__io_poll() local
336 ev = events + i; in uv__io_poll()
337 fd = ev->ident; in uv__io_poll()
340 if (ev->filter == EVFILT_PROC) { in uv__io_poll()
360 uv__kqueue_delete(loop->backend_fd, ev); in uv__io_poll()
365 if (ev->filter == EVFILT_USER) { in uv__io_poll()
375 if (ev->filter == EVFILT_VNODE) { in uv__io_poll()
379 w->cb(loop, w, ev->fflags); /* XXX always uv__fs_event() */ in uv__io_poll()
386 if (ev->filter == EVFILT_READ) { in uv__io_poll()
390 uv__kqueue_delete(loop->backend_fd, ev); in uv__io_poll()
392 if ((ev->flags & EV_EOF) && (w->pevents & UV__POLLRDHUP)) in uv__io_poll()
396 if (ev->filter == EV_OOBAND) { in uv__io_poll()
400 uv__kqueue_delete(loop->backend_fd, ev); in uv__io_poll()
403 if (ev->filter == EVFILT_WRITE) { in uv__io_poll()
407 uv__kqueue_delete(loop->backend_fd, ev); in uv__io_poll()
410 if (ev->flags & EV_ERROR) in uv__io_poll()
501 struct kevent ev; in uv__fs_event() local
554 EV_SET(&ev, w->fd, EVFILT_VNODE, EV_ADD | EV_ONESHOT, fflags, 0, 0); in uv__fs_event()
556 if (kevent(loop->backend_fd, &ev, 1, NULL, 0, NULL)) in uv__fs_event()