cgroups

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CgroupPathV2AddMountpoint

func CgroupPathV2AddMountpoint(path string) (string, error)

func GetCgroupID

func GetCgroupID(pathWithMountpoint string) (uint64, error)

GetCgroupID returns the cgroup2 ID of a path.

func GetCgroupPaths

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

GetCgroupPaths 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