Versions in this module Expand all Collapse all v0 v0.4.0 Nov 7, 2026 Changes in this version + func NVIDIAPresent() bool + func ScopeOf(procCgroup string) string + type Dir struct + Path string + func Delegate(root Dir, controllers ...string) (Dir, error) + func Own(mount string) Dir + func Root(path string) Dir + func (d Dir) Ceiling(name string) uint64 + func (d Dir) Child(name string) Dir + func (d Dir) Children(prefix string) ([]Dir, error) + func (d Dir) Create(memMax uint64, oomGroup bool) error + func (d Dir) Ensure(controllers ...string) error + func (d Dir) Exists() bool + func (d Dir) Kill() error + func (d Dir) MemoryCurrent() (uint64, error) + func (d Dir) Name() string + func (d Dir) OOMKills() (uint64, error) + func (d Dir) Open() (*os.File, error) + func (d Dir) PSI() (PSI, error) + func (d Dir) PidsMaxHits() (uint64, error) + func (d Dir) Procs() ([]int, error) + func (d Dir) Remove() error + func (d Dir) SetCeiling(high, max uint64) error + func (d Dir) SetMemoryMin(b uint64) error + func (d Dir) SetPidsMax(n uint64) error + func (d Dir) Stat(key string) (uint64, error) + type GPUGuard struct + func AttachGPUGuard(dir string) (*GPUGuard, error) + func AttachGPUGuard(string) (*GPUGuard, error) + func (g *GPUGuard) Close() error + func (g *GPUGuard) Covered(leaf string) (bool, error) + func (g *GPUGuard) Covered(string) (bool, error) + func (g *GPUGuard) Dir() string + func (g *GPUGuard) Release() error + type PSI struct + FullAvg10 float64 + SomeAvg10 float64 v0.4.0-rc.1 Nov 6, 2026