package cgroup
import "github.com/coreos/rkt/common/cgroup"
Index ¶
- Constants
- func IsCgroupUnified(root string) (bool, error)
- func IsIsolatorSupported(isolator string) (bool, error)
Constants ¶
const ( // The following const comes from // #define CGROUP2_SUPER_MAGIC 0x63677270 // https://github.com/torvalds/linux/blob/v4.6/include/uapi/linux/magic.h#L58 Cgroup2fsMagicNumber = 0x63677270 )
Functions ¶
func IsCgroupUnified ¶
IsCgroupUnified checks if cgroup mounted at /sys/fs/cgroup is the new unified version (cgroup v2)
func IsIsolatorSupported ¶
IsIsolatorSupported returns whether an isolator is supported in the kernel
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
common/cgroup/v1 | |
common/cgroup/v2 |
- Version
- v1.30.0 (latest)
- Published
- Apr 13, 2018
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 5 days ago –
Tools for package owners.