• Home
  • Raw
  • Download

Lines Matching refs:kev

167 kq_insert(struct kqop *kqop, struct kevent *kev)  in kq_insert()  argument
201 memcpy(&kqop->changes[kqop->nchanges++], kev, sizeof(struct kevent)); in kq_insert()
204 __func__, (int)kev->ident, in kq_insert()
205 kev->filter == EVFILT_READ ? "EVFILT_READ" : "EVFILT_WRITE", in kq_insert()
206 kev->flags == EV_DELETE ? " (del)" : "")); in kq_insert()
305 struct kevent kev; in kq_add() local
314 memset(&kev, 0, sizeof(kev)); in kq_add()
315 kev.ident = nsignal; in kq_add()
316 kev.filter = EVFILT_SIGNAL; in kq_add()
317 kev.flags = EV_ADD; in kq_add()
318 kev.udata = PTR_TO_UDATA(&kqop->evsigevents[nsignal]); in kq_add()
323 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) in kq_add()
338 memset(&kev, 0, sizeof(kev)); in kq_add()
339 kev.ident = ev->ev_fd; in kq_add()
340 kev.filter = EVFILT_READ; in kq_add()
343 kev.fflags = NOTE_EOF; in kq_add()
345 kev.flags = EV_ADD; in kq_add()
347 kev.flags |= EV_ONESHOT; in kq_add()
348 kev.udata = PTR_TO_UDATA(ev); in kq_add()
350 if (kq_insert(kqop, &kev) == -1) in kq_add()
357 memset(&kev, 0, sizeof(kev)); in kq_add()
358 kev.ident = ev->ev_fd; in kq_add()
359 kev.filter = EVFILT_WRITE; in kq_add()
360 kev.flags = EV_ADD; in kq_add()
362 kev.flags |= EV_ONESHOT; in kq_add()
363 kev.udata = PTR_TO_UDATA(ev); in kq_add()
365 if (kq_insert(kqop, &kev) == -1) in kq_add()
378 struct kevent kev; in kq_del() local
390 memset(&kev, 0, sizeof(kev)); in kq_del()
391 kev.ident = nsignal; in kq_del()
392 kev.filter = EVFILT_SIGNAL; in kq_del()
393 kev.flags = EV_DELETE; in kq_del()
398 if (kevent(kqop->kq, &kev, 1, NULL, 0, &timeout) == -1) in kq_del()
411 memset(&kev, 0, sizeof(kev)); in kq_del()
412 kev.ident = ev->ev_fd; in kq_del()
413 kev.filter = EVFILT_READ; in kq_del()
414 kev.flags = EV_DELETE; in kq_del()
416 if (kq_insert(kqop, &kev) == -1) in kq_del()
423 memset(&kev, 0, sizeof(kev)); in kq_del()
424 kev.ident = ev->ev_fd; in kq_del()
425 kev.filter = EVFILT_WRITE; in kq_del()
426 kev.flags = EV_DELETE; in kq_del()
428 if (kq_insert(kqop, &kev) == -1) in kq_del()