Function sys_vfs_change_directory

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

Change current working directory using VFS (VfsChangeDirectory)

This system call changes the current working directory of the calling task to the specified path using the VFS layer.

§Arguments

  • trapframe.get_arg(0) - Pointer to the null-terminated path string

§Returns

  • 0 on success
  • usize::MAX on error (path not found, not a directory, etc.)