Skip to main content

read_cgroups

Function read_cgroups 

Source
pub fn read_cgroups(root: &Path) -> (BTreeMap<u64, UnitId>, BTreeSet<String>)
Expand description

cgroup id (the cgroup directory’s inode) → unit, for every service cgroup under root (/sys/fs/cgroup), and the running services’ names.