From eb2f777e0c1bd727b6064d5f0623790ca341d6df Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 21 Sep 2025 19:15:04 -0400 Subject: kern: vfs: Add lookup by name helper Signed-off-by: Ian Moffett --- src/sys/include/os/vfs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/sys/include/os') diff --git a/src/sys/include/os/vfs.h b/src/sys/include/os/vfs.h index a46bb18..e08a9f0 100644 --- a/src/sys/include/os/vfs.h +++ b/src/sys/include/os/vfs.h @@ -42,6 +42,17 @@ */ int vfs_init(void); +/* + * Get a VFS file table entry by name + * + * @name: Name of desired entry + * @resp: Result pointer is written here + * + * Returns zero on success, otherwise a less than zero + * value upon failure. + */ +int vfs_by_name(const char *name, struct fs_info **resp); + /* * Get a VFS file table entry by index. * -- cgit v1.2.3