Module std::sys::unix::thread::cgroups

source ·
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

Enums

Functions

  • 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 🔒