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

Function bufobj_wdrop

freebsd/kern/vfs_bio.c:5071–5083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5069}
5070
5071void
5072bufobj_wdrop(struct bufobj *bo)
5073{
5074
5075 KASSERT(bo != NULL, ("NULL bo in bufobj_wdrop"));
5076 BO_LOCK(bo);
5077 KASSERT(bo->bo_numoutput > 0, ("bufobj_wdrop non-positive count"));
5078 if ((--bo->bo_numoutput == 0) && (bo->bo_flag & BO_WWAIT)) {
5079 bo->bo_flag &= ~BO_WWAIT;
5080 wakeup(&bo->bo_numoutput);
5081 }
5082 BO_UNLOCK(bo);
5083}
5084
5085int
5086bufobj_wwait(struct bufobj *bo, int slpflag, int timeo)

Callers 2

bufdoneFunction · 0.85
swapdev_strategyFunction · 0.85

Calls 1

wakeupFunction · 0.70

Tested by

no test coverage detected