Lines Matching refs:kqueueop
124 struct kqop *kqueueop = NULL; in kq_init() local
126 if (!(kqueueop = mm_calloc(1, sizeof(struct kqop)))) in kq_init()
136 kqueueop->kq = kq; in kq_init()
138 kqueueop->pid = getpid(); in kq_init()
141 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
142 if (kqueueop->changes == NULL) in kq_init()
144 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
145 if (kqueueop->events == NULL) in kq_init()
147 kqueueop->events_size = kqueueop->changes_size = NEVENT; in kq_init()
150 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]); in kq_init()
151 kqueueop->changes[0].ident = -1; in kq_init()
152 kqueueop->changes[0].filter = EVFILT_READ; in kq_init()
153 kqueueop->changes[0].flags = EV_ADD; in kq_init()
160 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
161 (int)kqueueop->events[0].ident != -1 || in kq_init()
162 !(kqueueop->events[0].flags & EV_ERROR)) { in kq_init()
169 return (kqueueop); in kq_init()
171 if (kqueueop) in kq_init()
172 kqop_free(kqueueop); in kq_init()