Documentation
¶
Overview ¶
Package cgroup2fs provides the cgroupv2 filesystem implementation.
Index ¶
Constants ¶
View Source
const Name = "cgroup2"
Name is the default filesystem name.
Variables ¶
This section is empty.
Functions ¶
func NewFilesystem ¶
func NewFilesystem(ctx context.Context, k *kernel.Kernel, vfsObj *vfs.VirtualFilesystem) (*vfs.Filesystem, error)
NewFilesystem creates and registers the cgroup2fs singleton. It should be called early during boot before the first task is created.
Types ¶
type FilesystemType ¶
type FilesystemType struct{}
FilesystemType implements vfs.FilesystemType for cgroup2 (cgroup v2).
+stateify savable
func (FilesystemType) GetFilesystem ¶
func (ft FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)
GetFilesystem implements vfs.FilesystemType.GetFilesystem.
func (FilesystemType) Name ¶
func (FilesystemType) Name() string
Name implements vfs.FilesystemType.Name.
func (FilesystemType) Release ¶
func (FilesystemType) Release(ctx context.Context)
Release implements vfs.FilesystemType.Release.
Click to show internal directories.
Click to hide internal directories.