From 059b2450fb71520e9d0ee1e26dd5bb48c9b6ddf7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 6 Oct 2025 17:46:47 -0400 Subject: kern: syscall: Add SYS_mount syscall This commit introduces the system call for mounting filesystems. As of now, only the fstype and target params are supported Signed-off-by: Ian Moffett --- src/sys/os/vfs_mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sys/os/vfs_mount.c') diff --git a/src/sys/os/vfs_mount.c b/src/sys/os/vfs_mount.c index 034b324..8048352 100644 --- a/src/sys/os/vfs_mount.c +++ b/src/sys/os/vfs_mount.c @@ -165,7 +165,7 @@ mount_alloc(const char *name, struct mount **mp_res) * Mount a filesystem */ int -mount(struct mount_args *margs, uint32_t flags) +kmount(struct mount_args *margs, uint32_t flags) { const struct vfsops *vfsops; struct mount *mpp; @@ -256,6 +256,6 @@ mountlist_init(struct mountlist *mlp) TAILQ_INIT(&mlp->list); mlp->i = 1; - mount(&margs, 0); + kmount(&margs, 0); return 0; } -- cgit v1.2.3