Module libproc::proc_pid

source ·
Expand description

Get information about processes using mainly the pid Get basic information about processes by PID

Structs§

Enums§

Traits§

  • The ListPIDInfo trait is needed for polymorphism on listpidinfo types, also abstracting flavor in order to provide type-guaranteed flavor correctness
  • The PIDInfo trait is needed for polymorphism on pidinfo types, also abstracting flavor in order to provide type-guaranteed flavor correctness

Functions§

  • Return true if the calling process is being run by the root user, false otherwise
  • Gets path of current working directory for the current process.
  • listpidsDeprecated
    Returns the PIDs of the active processes that match the proc_types parameter
  • Get the name of a process, using it’s process id (pid)
  • Gets the path of current working directory for the process with the provided pid.
  • Get the path of the executable file being run for a process