Function sys_fs_mount

Source
pub fn sys_fs_mount(trapframe: &mut Trapframe) -> usize
Expand description

Mount a filesystem (FsMount)

This system call mounts a filesystem at the specified target path.

§Arguments

  • trapframe.get_arg(0) - Pointer to source path (device/filesystem)
  • trapframe.get_arg(1) - Pointer to target mount point path
  • trapframe.get_arg(2) - Pointer to filesystem type string
  • trapframe.get_arg(3) - Mount flags
  • trapframe.get_arg(4) - Pointer to mount data/options

§Returns

  • 0 on success
  • usize::MAX on error (invalid path, filesystem not supported, etc.)