summaryrefslogtreecommitdiff
path: root/sys/inc/os/mount.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-21 12:51:59 -0500
committerIan Moffett <ian@osmora.org>2025-11-21 12:52:57 -0500
commitf95dcdd6179cc05aea6cf9ed83c94d7259d0f460 (patch)
treea8b8f105427d57a126218099255e3356f3be46f3 /sys/inc/os/mount.h
parentda0c894f9f0b045d629d6dd1448274bf39becd52 (diff)
kern: vfs: Add initial mountpoint lookup helper
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/inc/os/mount.h')
-rw-r--r--sys/inc/os/mount.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/inc/os/mount.h b/sys/inc/os/mount.h
index 799c14f..1c3dde6 100644
--- a/sys/inc/os/mount.h
+++ b/sys/inc/os/mount.h
@@ -93,4 +93,14 @@ struct mount {
*/
int mount(struct mount_args *margs);
+/*
+ * Lookup an entry within the mount table
+ *
+ * @name: Name to lookup
+ * @mres: Result pointer is written here
+ *
+ * Returns zero on success
+ */
+int mount_lookup(const char *name, struct mount **mres);
+
#endif /* !_OS_MOUNT_H_ */