From ec28488329d766a939a28292ffff22fac3963736 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 1 Mar 2024 20:24:41 -0500 Subject: kernel/amd64: vfs_subr: Add path parsing helper Signed-off-by: Ian Moffett --- sys/include/sys/vfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include') diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h index 7aafecf..6b96cce 100644 --- a/sys/include/sys/vfs.h +++ b/sys/include/sys/vfs.h @@ -40,6 +40,7 @@ struct fs_info *vfs_byname(const char *name); struct vnode *vfs_path_to_node(const char *path); char *vfs_get_fname_at(const char *path, size_t idx); +int vfs_rootname(const char *path, char **new_path); bool vfs_is_valid_path(const char *path); ssize_t vfs_hash_path(const char *path); #endif /* defined(_KERNEL) */ -- cgit v1.2.3