Lines Matching refs:kev

158 kq_insert(struct kqop *kqop, struct kevent *kev)  in kq_insert()  argument
192 memcpy(&kqop->changes[kqop->nchanges++], kev, sizeof(struct kevent)); in kq_insert()
195 __func__, kev->ident, in kq_insert()
196 kev->filter == EVFILT_READ ? "EVFILT_READ" : "EVFILT_WRITE", in kq_insert()
197 kev->flags == EV_DELETE ? " (del)" : "")); in kq_insert()
286 struct kevent kev; in kq_add() local
291 memset(&kev, 0, sizeof(kev)); in kq_add()
292 kev.ident = nsignal; in kq_add()
293 kev.filter = EVFILT_SIGNAL; in kq_add()
294 kev.flags = EV_ADD; in kq_add()
296 kev.flags |= EV_ONESHOT; in kq_add()
297 kev.udata = INTPTR(ev); in kq_add()
299 if (kq_insert(kqop, &kev) == -1) in kq_add()
310 memset(&kev, 0, sizeof(kev)); in kq_add()
311 kev.ident = ev->ev_fd; in kq_add()
312 kev.filter = EVFILT_READ; in kq_add()
315 kev.fflags = NOTE_EOF; in kq_add()
317 kev.flags = EV_ADD; in kq_add()
319 kev.flags |= EV_ONESHOT; in kq_add()
320 kev.udata = INTPTR(ev); in kq_add()
322 if (kq_insert(kqop, &kev) == -1) in kq_add()
329 memset(&kev, 0, sizeof(kev)); in kq_add()
330 kev.ident = ev->ev_fd; in kq_add()
331 kev.filter = EVFILT_WRITE; in kq_add()
332 kev.flags = EV_ADD; in kq_add()
334 kev.flags |= EV_ONESHOT; in kq_add()
335 kev.udata = INTPTR(ev); in kq_add()
337 if (kq_insert(kqop, &kev) == -1) in kq_add()
350 struct kevent kev; in kq_del() local
358 memset(&kev, 0, sizeof(kev)); in kq_del()
359 kev.ident = nsignal; in kq_del()
360 kev.filter = EVFILT_SIGNAL; in kq_del()
361 kev.flags = EV_DELETE; in kq_del()
363 if (kq_insert(kqop, &kev) == -1) in kq_del()
374 memset(&kev, 0, sizeof(kev)); in kq_del()
375 kev.ident = ev->ev_fd; in kq_del()
376 kev.filter = EVFILT_READ; in kq_del()
377 kev.flags = EV_DELETE; in kq_del()
379 if (kq_insert(kqop, &kev) == -1) in kq_del()
386 memset(&kev, 0, sizeof(kev)); in kq_del()
387 kev.ident = ev->ev_fd; in kq_del()
388 kev.filter = EVFILT_WRITE; in kq_del()
389 kev.flags = EV_DELETE; in kq_del()
391 if (kq_insert(kqop, &kev) == -1) in kq_del()