Lines Matching refs:Cgroup
151 let cgroup = some!(Cgroup::translate(mntinfo, subsys)); in load_cgroups()
155 struct Cgroup { struct
168 impl Cgroup { argument
169 fn new(dir: PathBuf) -> Cgroup { in new() argument
170 Cgroup { in new()
175 fn translate(mntinfo: MountInfo, subsys: Subsys) -> Option<Cgroup> { in translate() argument
191 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()
403 let cgroup = Cgroup::new(join!(FIXTURES_CGROUPS, "zero-period")); in test_cgroup_cpu_quota_divide_by_zero()
411 let cgroup = Cgroup::new(join!(FIXTURES_CGROUPS, "ceil")); in test_cgroup_cpu_quota_ceil()