Skip to main content

guest_cwd

Function guest_cwd 

Source
pub fn guest_cwd(fs: &Fs, pid: u32) -> Result<Vec<u8>, i32>
Expand description

The guest path of a tracee’s working directory.

Without ptrace the kernel’s cwd of every tracee is pinned to the alias directory and the real one is kept in the process table; otherwise it is read from /proc.

§Arguments

  • fs - Guest filesystem view.
  • pid - Tracee thread id.