aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/pseudofs/pseudofs.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2007-04-14 14:08:30 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2007-04-14 14:08:30 +0000
commitf61bc4ea5e29bcb2f8dcf5df7c5528c575d3d10e (patch)
tree8776799c42c10769a373413b3de276bdb92b7d60 /sys/fs/pseudofs/pseudofs.h
parentf53b14bad476828305e1c70398378a4ee7abb625 (diff)
Notes
Diffstat (limited to 'sys/fs/pseudofs/pseudofs.h')
-rw-r--r--sys/fs/pseudofs/pseudofs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/fs/pseudofs/pseudofs.h b/sys/fs/pseudofs/pseudofs.h
index bb1efd191664..4fa3311d61fa 100644
--- a/sys/fs/pseudofs/pseudofs.h
+++ b/sys/fs/pseudofs/pseudofs.h
@@ -165,14 +165,18 @@ typedef int (*pfs_destroy_t)(PFS_DESTROY_ARGS);
/*
* pfs_info: describes a pseudofs instance
+ *
+ * The pi_mutex is only used to avoid using the global subr_unit lock for
+ * unrhdr. The rest of struct pfs_info is only modified while Giant is
+ * held (during vfs_init() and vfs_uninit()).
*/
struct pfs_info {
char pi_name[PFS_FSNAMELEN];
pfs_init_t pi_init;
pfs_init_t pi_uninit;
- /* members below this line aren't initialized */
+
+ /* members below this line are initialized at run time*/
struct pfs_node *pi_root;
- /* currently, the mutex is only used to protect the bitmap */
struct mtx pi_mutex;
struct unrhdr *pi_unrhdr;
};