Lines Matching refs:changes
70 struct kevent *changes; member
132 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
133 if (kqueueop->changes == NULL) in kq_init()
141 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]); in kq_init()
142 kqueueop->changes[0].ident = -1; in kq_init()
143 kqueueop->changes[0].filter = EVFILT_READ; in kq_init()
144 kqueueop->changes[0].flags = EV_ADD; in kq_init()
151 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
209 struct event_change *in_ch = &changelist->changes[i]; in kq_build_changes_list()
215 newchanges = mm_realloc(kqop->changes, in kq_build_changes_list()
221 kqop->changes = newchanges; in kq_build_changes_list()
225 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
230 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
260 struct kevent *changes; in kq_dispatch() local
270 EVUTIL_ASSERT(kqop->changes); in kq_dispatch()
279 changes = kqop->changes; in kq_dispatch()
280 kqop->changes = NULL; in kq_dispatch()
303 res = kevent(kqop->kq, changes, n_changes, in kq_dispatch()
308 EVUTIL_ASSERT(kqop->changes == NULL); in kq_dispatch()
309 kqop->changes = changes; in kq_dispatch()
401 if (kqop->changes) in kqop_free()
402 mm_free(kqop->changes); in kqop_free()