# Functions
AvailableControllers get string:bool map of all the available controllers.
BlkioFiles gets the proper files for blkio weights.
GetCgroupProcess returns the cgroup for the specified process process.
GetOwnCgroup returns the cgroup for the current process.
No description provided by the author
IsCgroup2UnifiedMode returns whether we are running in cgroup 2 cgroup2 mode.
Load loads an existing cgroup control.
MaybeMoveToSubCgroup moves the current process in a sub cgroup when it is running in the root cgroup on a system that uses cgroupv2.
MoveUnderCgroup moves a group of processes to a new cgroup.
MoveUnderCgroupSubtree moves the PID under a cgroup subtree.
New creates a new cgroup control.
NewSystemd creates a new cgroup control.
OpenFile opens a cgroup file with the given flags.
ReadFile reads from a cgroup file, opening it with the read only flag.
SetBlkioThrottle sets the throttle limits for the cgroup.
SystemCPUUsage returns the system usage for all the cgroups.
UserConnection returns an user connection to D-BUS.
UserOwnsCurrentSystemdCgroup checks whether the current EUID owns the current cgroup.
WriteFile writes to a cgroup file.
# Variables
ErrCgroupDeleted means the cgroup was deleted.
ErrCgroupV1Rootless means the cgroup v1 were attempted to be used in rootless environment.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
CgroupControl controls a cgroup hierarchy.