# Functions
GetInfo returns basic system cgroup information.
Init initializes cgroups.
New setups a new CGroup abstraction using the provided read/writer.
NewFileReadWriter returns a CGroup instance using the filesystem as its backend.
ParseCPU parses CPU allowances.
TaskSchedulerTrigger triggers a CPU rebalance.
# Constants
Blkio resource control.
BlkioWeight resource control.
CgroupsDisabled indicates that cgroups are not supported.
CgroupsHybrid indicates that this is a mixed cgroup1 and cgroup2 layout.
CgroupsLegacy indicates that this is a pure cgroup1 layout.
CgroupsUnified indicates that this is a pure cgroup2 layout.
CPU resource control.
CPUAcct resource control.
CPUSet resource control.
Devices resource control.
Freezer resource control.
Hugetlb resource control.
Memory resource control.
MemoryMaxUsage resource control.
MemorySwap resource control.
MemorySwapMaxUsage resource control.
MemorySwappiness resource control.
MemorySwapUsage resource control.
Pids resource control.
Unavailable indicates the lack of controller.
V1 indicates the controller is backed by Cgroup V1.
V2 indicates the controller is backed by Cgroup V2.
# Variables
DeviceSchedRebalance channel for scheduling a CPU rebalance.
ErrControllerMissing indicates that the requested controller isn't setup on the system.
ErrUnknownVersion indicates that a version other than those supported was detected during init.
# Interfaces
The ReadWriter interface is used to read/write cgroup data.