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

Function taskqueue_drain

freebsd/kern/subr_taskqueue.c:581–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581void
582taskqueue_drain(struct taskqueue *queue, struct task *task)
583{
584
585 if (!queue->tq_spin)
586 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, __func__);
587
588 TQ_LOCK(queue);
589 while (task->ta_pending != 0 || task_is_running(queue, task))
590 TQ_SLEEP(queue, task, "tq_drain");
591 TQ_UNLOCK(queue);
592}
593
594void
595taskqueue_drain_all(struct taskqueue *queue)

Callers 15

taskq_cancel_idFunction · 0.85
taskq_wait_idFunction · 0.85
zfs_umountFunction · 0.85
ip_dn_destroyFunction · 0.85
ieee80211_ifdetachFunction · 0.85
ieee80211_vap_detachFunction · 0.85
ieee80211_draintaskFunction · 0.85
carp_mod_cleanupFunction · 0.85
inm_release_waitFunction · 0.85
arge_detachFunction · 0.85
are_detachFunction · 0.85
firmware_modeventFunction · 0.85

Calls 2

task_is_runningFunction · 0.70
TQ_SLEEPFunction · 0.70

Tested by

no test coverage detected