diff options
Diffstat (limited to 'freebsd/sys/sys/bufobj.h')
-rw-r--r-- | freebsd/sys/sys/bufobj.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/sys/bufobj.h b/freebsd/sys/sys/bufobj.h index 657702c1..2dc440a6 100644 --- a/freebsd/sys/sys/bufobj.h +++ b/freebsd/sys/sys/bufobj.h @@ -88,6 +88,12 @@ struct buf_ops { #define BO_WRITE(bo, bp) ((bo)->bo_ops->bop_write((bp))) #define BO_BDFLUSH(bo, bp) ((bo)->bo_ops->bop_bdflush((bo), (bp))) +/* + * Locking notes: + * 'S' is sync_mtx + * 'v' is the vnode lock which embeds the bufobj. + * '-' Constant and unchanging after initialization. + */ struct bufobj { struct rwlock bo_lock; /* Lock which protects "i" things */ struct buf_ops *bo_ops; /* - Buffer operations */ |