From 5b6085504086f72939306337dfec01698b1a92cb Mon Sep 17 00:00:00 2001 From: Kaimakan71 Date: Sat, 27 Apr 2024 09:21:31 -0400 Subject: kernel: vfs: Implement sys_mount() Signed-off-by: Kaimakan71 Signed-off-by: Ian Moffett --- sys/include/sys/syscall.h | 1 + sys/include/sys/vfs.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index a2ca992..6a102aa 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -47,6 +47,7 @@ enum { SYS_munmap, SYS_ioctl, SYS_execv, + SYS_mount, __MAX_SYSCALLS }; diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h index a55af12..98c784f 100644 --- a/sys/include/sys/vfs.h +++ b/sys/include/sys/vfs.h @@ -55,6 +55,8 @@ ssize_t vfs_read(struct vnode *vp, struct sio_txn *sio); ssize_t vfs_write(struct vnode *vp, struct sio_txn *sio); int vfs_getattr(struct vnode *vp, struct vattr *vattr); +uint64_t sys_mount(struct syscall_args *args); + #endif /* defined(_KERNEL) */ #endif /* !_SYS_VFS_H_ */ -- cgit v1.2.3