summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-19 13:20:40 -0400
committerIan Moffett <ian@osmora.org>2025-09-19 13:20:40 -0400
commit23f12d626f33bf03295ca4c1165155cfacec01ed (patch)
tree17a1f1efee1262521ce25fc14a21578e99dbc02e /src/sys/include
parentaa5bf63637a5c0aa6ccebd959461bfa1a9d8f0ff (diff)
kern: vfs: Add mountpoint lookup helper
Add helper function to lookup mountpoints such as '/' Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r--src/sys/include/sys/mount.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sys/include/sys/mount.h b/src/sys/include/sys/mount.h
index 3c4d0be..c93eb2b 100644
--- a/src/sys/include/sys/mount.h
+++ b/src/sys/include/sys/mount.h
@@ -118,6 +118,17 @@ struct vfsops {
};
/*
+ * Lookup a mountpoint existing on the system
+ *
+ * @name: Name of mountpoint
+ * @mp_res: Result of mountpoint is written here
+ *
+ * Returns zero on success, otherwise a less than zero
+ * value to indicate failure
+ */
+int mount_lookup(const char *name, struct mount **mp_res);
+
+/*
* Mount a specific filesystem
*
* @margs: Mount arguments