Skip to main content

read_cgroup

Function read_cgroup 

Source
pub fn read_cgroup(pid: Pid) -> CgroupInfo
Expand description

Read the cgroup path from /proc/{pid}/cgroup. Returns CgroupInfo::V2 if a cgroupv2 entry is found, CgroupInfo::V1Only if only v1 entries exist.