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