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

Function knote_enqueue

freebsd/kern/kern_event.c:2662–2674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2660}
2661
2662static void
2663knote_enqueue(struct knote *kn)
2664{
2665 struct kqueue *kq = kn->kn_kq;
2666
2667 KQ_OWNED(kn->kn_kq);
2668 KASSERT((kn->kn_status & KN_QUEUED) == 0, ("knote already queued"));
2669
2670 TAILQ_INSERT_TAIL(&kq->kq_head, kn, kn_tqe);
2671 kn->kn_status |= KN_QUEUED;
2672 kq->kq_count++;
2673 kqueue_wakeup(kq);
2674}
2675
2676static void
2677knote_dequeue(struct knote *kn)

Callers 1

kqueue_registerFunction · 0.85

Calls 1

kqueue_wakeupFunction · 0.85

Tested by

no test coverage detected