Modules
Structs
CgroupController
is the main component in cgumi, and it should always be created first. AllCgroupNode
should be created byCgroupController
.CgroupNode
is created byCgroupController
, and operations other than creation is implemented inCgroupNode
.IOStat
contains information in every line ofio.stat
.
Enums
- All functions in cgumi use
CgroupError
as the returned error type. - Different value in
DelegateMode
indicates different file to be chown(2)ed. - Privilege operations that may need to be elevated to do. This enum helps request helper function to show proper prompts to user.
- Available values for
cgroup.subtree_control
.SubtreeControl::Others(String)
is for new, unknown control type.
Constants
- The default path of Cgroupv2 on most Linux systems. Systemd hybrid cgroup mode is NOT tested and this path is not applicable in this case.