summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-02 22:22:42 +0000
committerdes <des@FreeBSD.org>2001-10-02 22:22:42 +0000
commite96a60dd2786961389241d23ed0a7339ad562315 (patch)
treefd9ef87e5c16d90a6aebca36d3a60e2bf36c6089 /sys/fs/pseudofs/pseudofs.h
parent1a3f19d0368bb8140f71240821abfd58398b8676 (diff)
downloadFreeBSD-src-e96a60dd2786961389241d23ed0a7339ad562315.zip
FreeBSD-src-e96a60dd2786961389241d23ed0a7339ad562315.tar.gz
Add a PFS_DISABLED flag; pfs_visible() automatically returns 0 if it is set
on the node in question. Also add two API functions for setting and clearing this flag; setting it also reclaims all vnodes associated with the node.
Diffstat (limited to 'sys/fs/pseudofs/pseudofs.h')
-rw-r--r--sys/fs/pseudofs/pseudofs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/fs/pseudofs/pseudofs.h b/sys/fs/pseudofs/pseudofs.h
index e925d92..8a6f918 100644
--- a/sys/fs/pseudofs/pseudofs.h
+++ b/sys/fs/pseudofs/pseudofs.h
@@ -57,6 +57,7 @@ typedef enum {
#define PFS_RAWRD 0x0004 /* raw reader */
#define PFS_RAWWR 0x0008 /* raw writer */
#define PFS_RAW (PFS_RAWRD|PFS_RAWWR)
+#define PFS_DISABLED 0x8000 /* node is disabled */
/*
* Data structures
@@ -165,6 +166,12 @@ int pfs_init (struct pfs_info *pi, struct vfsconf *vfc);
int pfs_uninit (struct pfs_info *pi, struct vfsconf *vfc);
/*
+ * Other utility functions
+ */
+int pfs_disable (struct pfs_node *pn);
+int pfs_enable (struct pfs_node *pn);
+
+/*
* Now for some initialization magic...
*/
#define PSEUDOFS(name, root, version) \
OpenPOWER on IntegriCloud