Lines Matching refs:kqueueop
115 struct kqop *kqueueop = NULL; in kq_init() local
117 if (!(kqueueop = mm_calloc(1, sizeof(struct kqop)))) in kq_init()
127 kqueueop->kq = kq; in kq_init()
129 kqueueop->pid = getpid(); in kq_init()
132 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
133 if (kqueueop->changes == NULL) in kq_init()
135 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
136 if (kqueueop->events == NULL) in kq_init()
138 kqueueop->events_size = kqueueop->changes_size = NEVENT; in kq_init()
141 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]); in kq_init()
142 kqueueop->changes[0].ident = -1; in kq_init()
143 kqueueop->changes[0].filter = EVFILT_READ; in kq_init()
144 kqueueop->changes[0].flags = EV_ADD; in kq_init()
151 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
152 (int)kqueueop->events[0].ident != -1 || in kq_init()
153 kqueueop->events[0].flags != EV_ERROR) { in kq_init()
160 return (kqueueop); in kq_init()
162 if (kqueueop) in kq_init()
163 kqop_free(kqueueop); in kq_init()