Lines Matching refs:bo
86 #define BO_STRATEGY(bo, bp) ((bo)->bo_ops->bop_strategy((bo), (bp))) argument
87 #define BO_SYNC(bo, w) ((bo)->bo_ops->bop_sync((bo), (w))) argument
88 #define BO_WRITE(bo, bp) ((bo)->bo_ops->bop_write((bp))) argument
89 #define BO_BDFLUSH(bo, bp) ((bo)->bo_ops->bop_bdflush((bo), (bp))) argument
120 #define BO_LOCKPTR(bo) (&(bo)->bo_lock) argument
121 #define BO_LOCK(bo) rw_wlock(BO_LOCKPTR((bo))) argument
122 #define BO_UNLOCK(bo) rw_wunlock(BO_LOCKPTR((bo))) argument
123 #define BO_RLOCK(bo) rw_rlock(BO_LOCKPTR((bo))) argument
124 #define BO_RUNLOCK(bo) rw_runlock(BO_LOCKPTR((bo))) argument
125 #define ASSERT_BO_WLOCKED(bo) rw_assert(BO_LOCKPTR((bo)), RA_WLOCKED) argument
126 #define ASSERT_BO_LOCKED(bo) rw_assert(BO_LOCKPTR((bo)), RA_LOCKED) argument
127 #define ASSERT_BO_UNLOCKED(bo) rw_assert(BO_LOCKPTR((bo)), RA_UNLOCKED) argument
129 void bufobj_init(struct bufobj *bo, void *priv);
130 void bufobj_wdrop(struct bufobj *bo);
131 void bufobj_wref(struct bufobj *bo);
132 void bufobj_wrefl(struct bufobj *bo);
133 int bufobj_invalbuf(struct bufobj *bo, int flags, int slpflag, int slptimeo);
134 int bufobj_wwait(struct bufobj *bo, int slpflag, int timeo);
135 int bufsync(struct bufobj *bo, int waitfor);
136 void bufbdflush(struct bufobj *bo, struct buf *bp);