| 5069 | } |
| 5070 | |
| 5071 | void |
| 5072 | bufobj_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 | |
| 5085 | int |
| 5086 | bufobj_wwait(struct bufobj *bo, int slpflag, int timeo) |
no test coverage detected