Lines Matching refs:changes
73 struct kevent *changes;
136 kqueueop->changes = mm_calloc(NEVENT, sizeof(struct kevent));
137 if (kqueueop->changes == NULL)
145 memset(&kqueueop->changes[0], 0, sizeof kqueueop->changes[0]);
146 kqueueop->changes[0].ident = -1;
147 kqueueop->changes[0].filter = EVFILT_READ;
148 kqueueop->changes[0].flags = EV_ADD;
155 kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 ||
207 struct event_change *in_ch = &changelist->changes[i];
213 newchanges = mm_realloc(kqop->changes,
219 kqop->changes = newchanges;
223 out_ch = &kqop->changes[n_changes++];
228 out_ch = &kqop->changes[n_changes++];
258 struct kevent *changes;
268 /* Build "changes" from "base->changes" */
269 EVUTIL_ASSERT(kqop->changes);
276 /* steal the changes array in case some broken code tries to call
278 changes = kqop->changes;
279 kqop->changes = NULL;
281 /* Make sure that 'events' is at least as long as the list of changes:
282 * otherwise errors in the changes can get reported as a -1 return
287 * retrying with a smaller changes array or a larger events array,
302 res = kevent(kqop->kq, changes, n_changes,
307 EVUTIL_ASSERT(kqop->changes == NULL);
308 kqop->changes = changes;
421 if (kqop->changes)
422 mm_free(kqop->changes);