Skip to main content

parse_proc_cgroup

Function parse_proc_cgroup 

Source
pub fn parse_proc_cgroup(contents: &str) -> CgroupInfo
Expand description

Parse the contents of /proc/pid/cgroup. For cgroupv2: the line is 0::<path>. For cgroupv1: hierarchy-ID is non-zero and controller-list is non-empty.