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

Function bwait

freebsd/kern/vfs_bio.c:5003–5013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5001}
5002
5003void
5004bwait(struct buf *bp, u_char pri, const char *wchan)
5005{
5006 struct mtx *mtxp;
5007
5008 mtxp = mtx_pool_find(mtxpool_sleep, bp);
5009 mtx_lock(mtxp);
5010 while ((bp->b_flags & B_DONE) == 0)
5011 msleep(bp, mtxp, pri, wchan, 0);
5012 mtx_unlock(mtxp);
5013}
5014
5015int
5016bufsync(struct bufobj *bo, int waitfor)

Callers 4

bufwaitFunction · 0.85
swap_pager_putpagesFunction · 0.85
vnode_pager_input_smlfsFunction · 0.85

Calls 3

mtx_pool_findFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected