Lines Matching refs:kqueueop
119 struct kqop *kqueueop = NULL; in kq_init() local
121 if (!(kqueueop = mm_calloc(1, sizeof(struct kqop)))) in kq_init()
131 kqueueop->kq = kq; in kq_init()
133 kqueueop->pid = getpid(); in kq_init()
136 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
137 if (kqueueop->changes == NULL) in kq_init()
139 kqueueop->events = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
140 if (kqueueop->events == NULL) in kq_init()
142 kqueueop->events_size = kqueueop->changes_size = NEVENT; in kq_init()
145 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]); in kq_init()
146 kqueueop->changes[0].ident = -1; in kq_init()
147 kqueueop->changes[0].filter = EVFILT_READ; in kq_init()
148 kqueueop->changes[0].flags = EV_ADD; in kq_init()
155 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
156 (int)kqueueop->events[0].ident != -1 || in kq_init()
157 !(kqueueop->events[0].flags & EV_ERROR)) { in kq_init()
164 return (kqueueop); in kq_init()
166 if (kqueueop) in kq_init()
167 kqop_free(kqueueop); in kq_init()