Lines Matching refs:kqueueop
85 struct kqop *kqueueop; in kq_init() local
91 if (!(kqueueop = calloc(1, sizeof(struct kqop)))) in kq_init()
98 free (kqueueop); in kq_init()
102 kqueueop->kq = kq; in kq_init()
104 kqueueop->pid = getpid(); in kq_init()
107 kqueueop->changes = calloc(NEVENT, sizeof(struct kevent)); in kq_init()
108 if (kqueueop->changes == NULL) { in kq_init()
109 free (kqueueop); in kq_init()
112 kqueueop->events = calloc(NEVENT, sizeof(struct kevent)); in kq_init()
113 if (kqueueop->events == NULL) { in kq_init()
114 free (kqueueop->changes); in kq_init()
115 free (kqueueop); in kq_init()
118 kqueueop->nevents = NEVENT; in kq_init()
122 TAILQ_INIT(&kqueueop->evsigevents[i]); in kq_init()
125 return (kqueueop); in kq_init()