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

Function gtaskqueue_drain

freebsd/kern/subr_gtaskqueue.c:423–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void
424gtaskqueue_drain(struct gtaskqueue *queue, struct gtask *gtask)
425{
426
427 if (!queue->tq_spin)
428 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, __func__);
429
430 TQ_LOCK(queue);
431 gtaskqueue_drain_locked(queue, gtask);
432 TQ_UNLOCK(queue);
433}
434
435void
436gtaskqueue_drain_all(struct gtaskqueue *queue)

Callers

nothing calls this directly

Calls 1

gtaskqueue_drain_lockedFunction · 0.85

Tested by

no test coverage detected