cgroup

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindContainerGroup

func FindContainerGroup(cgroups []procfs.Cgroup) procfs.Cgroup

FindContainerGroup returns the cgroup with the cpu controller or first systemd slice cgroup.

func ID

func ID(pathWithMountpoint string) (uint64, error)

ID returns the cgroup2 ID of a path.

func PathV2AddMountpoint

func PathV2AddMountpoint(path string) (string, error)

PathV2AddMountpoint adds the cgroup2 mountpoint to a path.

func Paths

func Paths(pid int) (string, string, error)

Paths returns the cgroup1 and cgroup2 paths of a process. It does not include the "/sys/fs/cgroup/{unified,systemd,}" prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL