Lines Matching refs:waitok
99 struct thread *td, int waitok);
105 uintptr_t ident, int waitok);
142 static struct knote *knote_alloc(int waitok);
1142 * A ref to kq (obtained via kqueue_acquire) must be held. waitok will
1147 kqueue_register(struct kqueue *kq, struct kevent *kev, struct thread *td, int waitok)
1178 tkn = knote_alloc(waitok);
1199 error = kqueue_expand(kq, fops, kev->ident, waitok);
1236 kqueue_expand(kq, fops, kev->ident, waitok);
1456 * Not calling hashinit w/ waitok (proper malloc flag) should be safe.
1462 int waitok)
1468 int mflag = waitok ? M_WAITOK : M_NOWAIT;
2476 knote_alloc(int waitok)
2479 return (uma_zalloc(knote_zone, (waitok ? M_WAITOK : M_NOWAIT) |
2494 kqfd_register(int fd, struct kevent *kev, struct thread *td, int waitok)
2507 error = kqueue_register(kq, kev, td, waitok);