Lines Matching refs:subsys
149 let subsys = some!(Subsys::load_cpu(cgroup_proc)); in load_cgroups() localVariable
151 let cgroup = some!(Cgroup::translate(mntinfo, subsys)); in load_cgroups()
175 fn translate(mntinfo: MountInfo, subsys: Subsys) -> Option<Cgroup> { in translate()
179 subsys.base, in translate()
184 let rel_from_root = some!(Path::new(&subsys.base).strip_prefix(&mntinfo.root).ok()); in translate()
319 let subsys = Subsys::load_cpu(path).unwrap(); in test_load_subsys() localVariable
321 assert_eq!(subsys.base, "/"); in test_load_subsys()
380 for &(root, mount_point, subsys, expected) in cases.iter() { in test_cgroup_mount()
385 let subsys = Subsys { in test_cgroup_mount() localVariable
386 base: subsys.into(), in test_cgroup_mount()
389 let actual = Cgroup::translate(mnt_info, subsys).map(|c| c.base); in test_cgroup_mount()