sys_vfs_get_cwd_path

Function sys_vfs_get_cwd_path 

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

Get current working directory path (VfsGetCwdPath)

This system call writes the calling task’s current working directory as a UTF-8 path into the provided user buffer.

§Arguments

  • trapframe.get_arg(0) - Pointer to buffer to store path
  • trapframe.get_arg(1) - Buffer size

§Returns

  • Number of bytes written to buffer on success
  • usize::MAX on error