Available on Android or Linux only.
Expand description
Currently not covered
- cgroup v2 in non-standard mountpoints
- paths containing control characters or spaces, since those would be escaped in procfs output and we donβt unescape
Re-exportsΒ§
use crate::borrow::Cow;πuse crate::ffi::OsString;πuse crate::fs::File;πuse crate::fs::exists;πuse crate::io::BufRead;πuse crate::io::Read;πuse crate::os::unix::ffi::OsStringExt;πuse crate::path::Path;πuse crate::path::PathBuf;πuse crate::str::from_utf8;π
EnumsΒ§
- Cgroup π
FunctionsΒ§
- find_
mountpoint π - Scan mountinfo for cgroup v1 mountpoint with a cpu controller
- quota π
- Returns cgroup CPU quota in core-equivalents, rounded down or usize::MAX if the quota cannot be determined or is not set.
- quota_
v1 π - quota_
v2 π