summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-19 01:41:56 -0400
committerIan Moffett <ian@osmora.org>2025-09-19 01:41:56 -0400
commit017a6a964c06eb8a3dbe30281d5a3bb3ac8f3ca5 (patch)
treeefc140a17af6882f2574c3eb74730f31282b7aee /src/sys/include
parent6412ff0bfbc76d302ef8f272db94be20195ba07a (diff)
kernel: mount: Add mountpoint allocation
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 c2beb8d..0296b70 100644
--- a/src/sys/include/sys/mount.h
+++ b/src/sys/include/sys/mount.h
@@ -133,5 +133,16 @@ int mount(struct mount_args *margs, uint32_t flags);
*/
int mountlist_init(struct mountlist *mlp);
+/*
+ * Allocate a new mountpoint
+ *
+ * @name: The name to allocate mountpoint as
+ * @mp_res: Result pointer is written here
+ *
+ * Returns zero on success, otherwise a less than
+ * zero value to indicate failure.
+ */
+int mount_alloc(const char *name, struct mount **mp_res);
+
#endif /* !_KERNEL */
#endif /* !_SYS_MOUNT_H_ */