pub fn read_cgroup(pid: Pid) -> CgroupInfoExpand 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.
pub fn read_cgroup(pid: Pid) -> CgroupInfoRead the cgroup path from /proc/{pid}/cgroup.
Returns CgroupInfo::V2 if a cgroupv2 entry is found,
CgroupInfo::V1Only if only v1 entries exist.