kubernetes/vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd/v2.go

const cpuIdleSupportedVersion

type UnifiedManager

func NewUnifiedManager(config *configs.Cgroup, path string) (*UnifiedManager, error) {}

func shouldSetCPUIdle(cm *dbusConnManager, v string) bool {}

// unifiedResToSystemdProps tries to convert from Cgroup.Resources.Unified
// key/value map (where key is cgroupfs file name) to systemd unit properties.
// This is on a best-effort basis, so the properties that are not known
// (to this function and/or systemd) are ignored (but logged with "debug"
// log level).
//
// For the list of keys, see https://www.kernel.org/doc/Documentation/cgroup-v2.txt
//
// For the list of systemd unit properties, see systemd.resource-control(5).
func unifiedResToSystemdProps(cm *dbusConnManager, res map[string]string) (props []systemdDbus.Property, _ error) {}

func genV2ResourcesProperties(dirPath string, r *configs.Resources, cm *dbusConnManager) ([]systemdDbus.Property, error) {}

func (m *UnifiedManager) Apply(pid int) error {}

// The kernel exposes a list of files that should be chowned to the delegate
// uid in /sys/kernel/cgroup/delegate.  If the file is not present
// (Linux < 4.15), use the initial values mentioned in cgroups(7).
func cgroupFilesToChown() ([]string, error) {}

func (m *UnifiedManager) Destroy() error {}

func (m *UnifiedManager) Path(_ string) string {}

// getSliceFull value is used in initPath.
// The value is incompatible with systemdDbus.PropSlice.
func (m *UnifiedManager) getSliceFull() (string, error) {}

func (m *UnifiedManager) initPath() error {}

func (m *UnifiedManager) Freeze(state configs.FreezerState) error {}

func (m *UnifiedManager) GetPids() ([]int, error) {}

func (m *UnifiedManager) GetAllPids() ([]int, error) {}

func (m *UnifiedManager) GetStats() (*cgroups.Stats, error) {}

func (m *UnifiedManager) Set(r *configs.Resources) error {}

func (m *UnifiedManager) GetPaths() map[string]string {}

func (m *UnifiedManager) GetCgroups() (*configs.Cgroup, error) {}

func (m *UnifiedManager) GetFreezerState() (configs.FreezerState, error) {}

func (m *UnifiedManager) Exists() bool {}

func (m *UnifiedManager) OOMKillCount() (uint64, error) {}