kubernetes/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs2/fs2.go

type parseError

type Manager

// NewManager creates a manager for cgroup v2 unified hierarchy.
// dirPath is like "/sys/fs/cgroup/user.slice/user-1001.slice/session-1.scope".
// If dirPath is empty, it is automatically set using config.
func NewManager(config *configs.Cgroup, dirPath string) (*Manager, error) {}

func (m *Manager) getControllers() error {}

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

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

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

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

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

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

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

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

func setDevices(dirPath string, r *configs.Resources) error {}

func (m *Manager) setUnified(res map[string]string) error {}

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

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

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

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

func OOMKillCount(path string) (uint64, error) {}

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

func CheckMemoryUsage(dirPath string, r *configs.Resources) error {}