Searched refs:Cgroup (Results 1 – 4 of 4) sorted by relevance
151 let cgroup = some!(Cgroup::translate(mntinfo, subsys)); in load_cgroups()155 struct Cgroup { struct168 impl Cgroup { impl169 fn new(dir: PathBuf) -> Cgroup { in new() argument170 Cgroup { in new()175 fn translate(mntinfo: MountInfo, subsys: Subsys) -> Option<Cgroup> { in translate() argument191 Some(Cgroup::new(path)) in translate()291 use super::{Cgroup, MountInfo, Subsys};389 let actual = Cgroup::translate(mnt_info, subsys).map(|c| c.base); in test_cgroup_mount()397 let cgroup = Cgroup::new(join!(FIXTURES_CGROUPS, "good")); in test_cgroup_cpu_quota()[all …]
2 NAME = "Cgroup"
15 class Cgroup(object): class
7 from cgroup_common import Cgroup as CG