aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-01 20:33:18 -0500
committerIan Moffett <ian@osmora.org>2024-03-01 20:41:50 -0500
commit899372a1a7eb7db0ad29046fdf36c766c45b8993 (patch)
treef46c997784427feccc5223c4678646e28f0b3f98 /sys/kern
parent87207136edcc91c08b7e27cb052765795e2f7c90 (diff)
kernel: vfs: Add wrappers over VFS operations
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_subr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 5740edf..5155c9a 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -216,3 +216,16 @@ vfs_rootname(const char *path, char **new_path)
*new_path = tmp;
return 0;
}
+
+
+int
+vfs_vget(struct vnode *parent, const char *name, struct vnode **vp)
+{
+ return parent->vops->vget(parent, name, vp);
+}
+
+ssize_t
+vfs_read(struct vnode *vp, char *buf, size_t count)
+{
+ return vp->vops->read(vp, buf, count);
+}