sysfs

package
v0.0.0-...-fe9d0f6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreIdList

type CoreIdList []int

type Node

type Node struct {
	Id           int
	Cores        CoreIdList
	PCIResources PCIResourceList
}

type PCIResourceList

type PCIResourceList []string

type SysFS

type SysFS string

func (SysFS) CoresPerNUMANode

func (sf SysFS) CoresPerNUMANode(nodeNum int) (CoreIdList, bool, error)

func (SysFS) NUMANodeCount

func (sf SysFS) NUMANodeCount() (int, error)

func (SysFS) PCIDeviceNUMANode

func (sf SysFS) PCIDeviceNUMANode(pciDevice string) (int, error)

func (SysFS) String

func (sf SysFS) String() string

type Topology

type Topology struct {
	NUMANodeCount int
	NUMANodes     []Node
}

func NewTopologyFromSysFs

func NewTopologyFromSysFs(sysFsPath string, pciResources map[string]string) (Topology, error)

func (Topology) CoreIdToNUMANodeIdMap

func (tp Topology) CoreIdToNUMANodeIdMap() map[int]int

Jump to

Keyboard shortcuts

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