Lines Matching refs:changes
73 struct kevent *changes; member
136 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
137 if (kqueueop->changes == NULL) 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()
207 struct event_change *in_ch = &changelist->changes[i]; in kq_build_changes_list()
213 newchanges = mm_realloc(kqop->changes, in kq_build_changes_list()
219 kqop->changes = newchanges; in kq_build_changes_list()
223 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
228 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
258 struct kevent *changes; in kq_dispatch() local
268 EVUTIL_ASSERT(kqop->changes); in kq_dispatch()
277 changes = kqop->changes; in kq_dispatch()
278 kqop->changes = NULL; in kq_dispatch()
301 res = kevent(kqop->kq, changes, n_changes, in kq_dispatch()
306 EVUTIL_ASSERT(kqop->changes == NULL); in kq_dispatch()
307 kqop->changes = changes; in kq_dispatch()
420 if (kqop->changes) in kqop_free()
421 mm_free(kqop->changes); in kqop_free()