MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kqueue_init

Function kqueue_init

freebsd/kern/kern_event.c:962–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962static void
963kqueue_init(struct kqueue *kq)
964{
965
966 mtx_init(&kq->kq_lock, "kqueue", NULL, MTX_DEF | MTX_DUPOK);
967 TAILQ_INIT(&kq->kq_head);
968 knlist_init_mtx(&kq->kq_sel.si_note, &kq->kq_lock);
969 TASK_INIT(&kq->kq_task, 0, kqueue_task, kq);
970}
971
972int
973kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps)

Callers 2

kern_kqueueFunction · 0.85
kern_kevent_anonymousFunction · 0.85

Calls 2

mtx_initFunction · 0.85
knlist_init_mtxFunction · 0.85

Tested by

no test coverage detected