summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-12-07 17:41:19 +0000
committerdes <des@FreeBSD.org>2003-12-07 17:41:19 +0000
commitef7fbaac4f9ae990852d6dbbd8dffeec674c4102 (patch)
tree732ed309c28c1fb98dccdf480b2c252f844ee9c0 /sys/fs/pseudofs/pseudofs.h
parent0864edfb363abcb91a441a52e655e2bfbd843979 (diff)
downloadFreeBSD-src-ef7fbaac4f9ae990852d6dbbd8dffeec674c4102.zip
FreeBSD-src-ef7fbaac4f9ae990852d6dbbd8dffeec674c4102.tar.gz
Constify, and add an API function to find a named node in a directory.
Diffstat (limited to 'sys/fs/pseudofs/pseudofs.h')
-rw-r--r--sys/fs/pseudofs/pseudofs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/fs/pseudofs/pseudofs.h b/sys/fs/pseudofs/pseudofs.h
index 021ea3f..2d44811 100644
--- a/sys/fs/pseudofs/pseudofs.h
+++ b/sys/fs/pseudofs/pseudofs.h
@@ -210,14 +210,15 @@ int pfs_uninit (struct pfs_info *pi, struct vfsconf *vfc);
/*
* Directory structure construction and manipulation
*/
-struct pfs_node *pfs_create_dir (struct pfs_node *parent, char *name,
+struct pfs_node *pfs_create_dir (struct pfs_node *parent, const char *name,
pfs_attr_t attr, pfs_vis_t vis, int flags);
-struct pfs_node *pfs_create_file(struct pfs_node *parent, char *name,
+struct pfs_node *pfs_create_file(struct pfs_node *parent, const char *name,
pfs_fill_t fill, pfs_attr_t attr,
pfs_vis_t vis, int flags);
-struct pfs_node *pfs_create_link(struct pfs_node *parent, char *name,
+struct pfs_node *pfs_create_link(struct pfs_node *parent, const char *name,
pfs_fill_t fill, pfs_attr_t attr,
pfs_vis_t vis, int flags);
+struct pfs_node *pfs_find_node (struct pfs_node *parent, const char *name);
int pfs_disable (struct pfs_node *pn);
int pfs_enable (struct pfs_node *pn);
int pfs_destroy (struct pfs_node *pn);
OpenPOWER on IntegriCloud