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

Function bdone

freebsd/kern/vfs_bio.c:4991–5001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4989}
4990
4991void
4992bdone(struct buf *bp)
4993{
4994 struct mtx *mtxp;
4995
4996 mtxp = mtx_pool_find(mtxpool_sleep, bp);
4997 mtx_lock(mtxp);
4998 bp->b_flags |= B_DONE;
4999 wakeup(bp);
5000 mtx_unlock(mtxp);
5001}
5002
5003void
5004bwait(struct buf *bp, u_char pri, const char *wchan)

Callers 1

bufdoneFunction · 0.85

Calls 4

mtx_pool_findFunction · 0.85
mtx_lockFunction · 0.70
wakeupFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected