sysfs

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathDevsSysCPU  = "devices/system/cpu"
	PathDevsSysNode = "devices/system/node"
)

* keep this handy: * https://www.kernel.org/doc/html/latest/admin-guide/cputopology.html

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path struct {
	// contains filtered or unexported fields
}

func New

func New(path string) Path

func (Path) ForCPU

func (p Path) ForCPU(cpuID int) Path

func (Path) ForNode

func (p Path) ForNode(nodeID int) Path

func (Path) Join

func (p Path) Join(extra ...string) Path

func (Path) ReadFile

func (p Path) ReadFile(name string) (string, error)

func (Path) ReadList

func (p Path) ReadList(name string) ([]int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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