Skip to main content

Module common

Module common 

Source

Structs§

CgroupConfig
ControllerOpt
ControllerOpt is given all cgroup controller for applying cgroup configuration.
MustBePowerOfTwo

Enums§

AnyCgroupManager
AnyManagerError
CgroupSetup
CreateCgroupSetupError
EitherError
FreezerState
FreezerState is given freezer controller
GetCgroupSetupError
JoinSafelyError
WrappedIoError

Constants§

CGROUP_PROCS
DEFAULT_CGROUP_ROOT

Traits§

CgroupManager

Functions§

create_cgroup_manager
create_cgroup_manager_with_root
get_all_pids
get_cgroup_setup
get_cgroup_setup_with_root
Determines the cgroup setup of the system. Systems typically have one of three setups:
read_cgroup_file
write_cgroup_file
write_cgroup_file_str