Crate cgumi
Source - utils
- CgroupController
CgroupController is the main component in cgumi, and it should always be created first.
All CgroupNode should be created by CgroupController.- CgroupNode
CgroupNode is created by CgroupController,
and operations other than creation is implemented in CgroupNode.- IOStat
IOStat contains information in every line of io.stat.
- CgroupError
- All functions in cgumi use
CgroupError as the returned error type. - DelegateMode
- Different value in
DelegateMode indicates different file to be chown(2)ed. - PrivilegeOpType
- Privilege operations that may need to be elevated to do.
This enum helps request helper function to show proper prompts to user.
- SubtreeControl
- Available values for
cgroup.subtree_control.
SubtreeControl::Others(String) is for new, unknown control type.
- CGROUPV2_DEFAULT_PATH
- 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.