Lines Matching full:changes
78 struct kevent *changes; member
141 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent)); in kq_init()
142 if (kqueueop->changes == NULL) in kq_init()
150 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]); in kq_init()
151 kqueueop->changes[0].ident = -1; in kq_init()
152 kqueueop->changes[0].filter = EVFILT_READ; in kq_init()
153 kqueueop->changes[0].flags = EV_ADD; in kq_init()
160 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || in kq_init()
212 struct event_change *in_ch = &changelist->changes[i]; in kq_build_changes_list()
226 newchanges = mm_realloc(kqop->changes, in kq_build_changes_list()
232 kqop->changes = newchanges; in kq_build_changes_list()
236 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
241 out_ch = &kqop->changes[n_changes++]; in kq_build_changes_list()
271 struct kevent *changes; in kq_dispatch() local
281 /* Build "changes" from "base->changes" */ in kq_dispatch()
282 EVUTIL_ASSERT(kqop->changes); in kq_dispatch()
289 /* steal the changes array in case some broken code tries to call in kq_dispatch()
291 changes = kqop->changes; in kq_dispatch()
292 kqop->changes = NULL; in kq_dispatch()
294 /* Make sure that 'events' is at least as long as the list of changes: in kq_dispatch()
295 * otherwise errors in the changes can get reported as a -1 return in kq_dispatch()
300 * retrying with a smaller changes array or a larger events array, in kq_dispatch()
315 res = kevent(kqop->kq, changes, n_changes, in kq_dispatch()
320 EVUTIL_ASSERT(kqop->changes == NULL); in kq_dispatch()
321 kqop->changes = changes; in kq_dispatch()
434 if (kqop->changes) in kqop_free()
435 mm_free(kqop->changes); in kqop_free()