proc_root_pid()

The root directory of the process

Syntax:

int proc_root_pid(int pid, char *s);

Arguments:

Name Description
pid PID of process
s buffer to put the root directory

Description:

The root directory of the process.

Return Values:

On success, returns the root dir length. On error, -1 is returned.

See Also:

proc_exe_pid(), proc_cmdline(), proc_binfmt_pid(), proc_cwd_pid()



INDEX