Function systemd::login::get_slice
[−]
[src]
pub fn get_slice(slice_type: UnitType, pid: Option<pid_t>) -> Result<String>
Determines the slice (either in system or user session) of a process.
Specific processes can be optionally targeted via their PID. When no PID is specified, operation is executed for the calling process. This method can be used to retrieve either a system or an user slice identifier.