Lines Matching defs:kev
540 struct kevent kev;
561 EV_SET(&kev, fd, EVFILT_READ, EV_ENABLE, 0, 0, fio);
563 if (kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL) == -1)
579 EV_SET(&kev, fd, EVFILT_READ, EV_DISABLE, 0, 0, fio);
580 rv = kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL);
781 struct kevent kev[2];
812 EV_SET(&kev[nf], fd, EVFILT_READ, EV_ADD|readenable, 0, 0, fio);
815 EV_SET(&kev[nf], fd, EVFILT_WRITE,
819 rv = kevent(pu->pu_kq, kev, nf, NULL, 0, NULL);
854 struct kevent kev;
868 EV_SET(&kev, fd, EVFILT_READ, EV_ENABLE, 0, 0, fio);
869 rv = kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL);
885 struct kevent kev[2];
900 EV_SET(&kev[0], fd, EVFILT_READ, EV_DISABLE, 0, 0, fio);
904 EV_SET(&kev[1], fd, EVFILT_WRITE, EV_DISABLE, 0, 0, fio);
908 rv = kevent(pu->pu_kq, kev, i, NULL, 0, NULL);
927 struct kevent kev;
948 EV_SET(&kev, fio->io_fd, EVFILT_READ, EV_DELETE, 0, 0, 0);
949 (void) kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL);
964 struct kevent kev;
976 EV_SET(&kev, fio->io_fd, EVFILT_WRITE, EV_DELETE, 0, 0, 0);
977 (void) kevent(pu->pu_kq, &kev, 1, NULL, 0, NULL);