Lines Matching refs:kq
77 int kq; member
101 int i, kq; in kq_init() local
113 if ((kq = kqueue()) == -1) { in kq_init()
119 kqueueop->kq = kq; in kq_init()
151 if (kevent(kq, in kq_init()
159 close(kq); in kq_init()
232 res = kevent(kqop->kq, changes, kqop->nchanges, in kq_dispatch()
323 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) in kq_add()
398 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) in kq_del()
446 if (kqop->kq >= 0 && kqop->pid == getpid()) in kq_dealloc()
447 close(kqop->kq); in kq_dealloc()