...

Package fs2

import "github.com/opencontainers/runc/libcontainer/cgroups/fs2"
Overview
Index

Overview ▾

Constants

const UnifiedMountpoint = "/sys/fs/cgroup"

func CreateCgroupPath

func CreateCgroupPath(path string, c *configs.Cgroup) (Err error)

CreateCgroupPath creates cgroupv2 path, enabling all the supported controllers.

func NewManager

func NewManager(config *configs.Cgroup, dirPath string) (cgroups.Manager, error)

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 OOMKillCount

func OOMKillCount(path string) (uint64, error)