Lines Matching refs:changes
81 struct kevent *changes; member
144 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
145 if (kqueueop->changes == NULL) in kq_init()
153 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]); in kq_init()
154 kqueueop->changes[0].ident = -1; in kq_init()
155 kqueueop->changes[0].filter = EVFILT_READ; in kq_init()
156 kqueueop->changes[0].flags = EV_ADD; in kq_init()
163 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
215 struct event_change *in_ch = &changelist->changes[i]; in kq_build_changes_list()
229 newchanges = mm_realloc(kqop->changes, in kq_build_changes_list()
235 kqop->changes = newchanges; in kq_build_changes_list()
239 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
244 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
274 struct kevent *changes; in kq_dispatch() local
285 EVUTIL_ASSERT(kqop->changes); in kq_dispatch()
294 changes = kqop->changes; in kq_dispatch()
295 kqop->changes = NULL; in kq_dispatch()
318 res = kevent(kqop->kq, changes, n_changes, in kq_dispatch()
323 EVUTIL_ASSERT(kqop->changes == NULL); in kq_dispatch()
324 kqop->changes = changes; in kq_dispatch()
437 if (kqop->changes) in kqop_free()
438 mm_free(kqop->changes); in kqop_free()