Crate cgumi

source ·

Modules

Structs

  • CgroupController is the main component in cgumi, and it should always be created first. All CgroupNode should be created by CgroupController.
  • CgroupNode is created by CgroupController, and operations other than creation is implemented in CgroupNode.
  • IOStat contains information in every line of io.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.