Lines Matching refs:kevent
54 /* Some platforms apparently define the udata field of struct kevent as
73 struct kevent *changes;
75 struct kevent *events;
86 static int kq_insert (struct kqop *, struct kevent *);
125 kqueueop->changes = malloc(NEVENT * sizeof(struct kevent));
130 kqueueop->events = malloc(NEVENT * sizeof(struct kevent));
149 * If kqueue works, then kevent will succeed, and it will
151 * kevent will fail.
153 if (kevent(kq,
169 kq_insert(struct kqop *kqop, struct kevent *kev)
174 struct kevent *newchange;
175 struct kevent *newresult;
180 nevents * sizeof(struct kevent));
188 nevents * sizeof(struct kevent));
203 memcpy(&kqop->changes[kqop->nchanges++], kev, sizeof(struct kevent));
223 struct kevent *changes = kqop->changes;
224 struct kevent *events = kqop->events;
234 res = kevent(kqop->kq, changes, kqop->nchanges,
239 event_warn("kevent");
246 event_debug(("%s: kevent reports %d", __func__, res));
307 struct kevent kev;
325 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1)
380 struct kevent kev;
400 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1)