Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
System.CGroup.V2.CGroup
Description
Common types and operations for cgroups (v2)
Documentation
A cgroup (under cgroups v2)
Constructors
CGroup | |
Fields
|
resolveCGroup :: IO CGroup Source #
Resolve the cgroup (v2) used for the current process
see cgroups(7): /proc/self/cgroup is a file that contains information about control groups applied to this process
see proc(5): /proc/self/mountinfo is a file that contains information about mounts available to this process
Throws an Exception when the cgroup is unable to be found, or when the current process is not running under cgroups v2