Documentation
¶
Index ¶
Constants ¶
View Source
const (
SysfsRoot = "/sys"
)
Variables ¶
This section is empty.
Functions ¶
func FindOrphanedCPUs ¶
func FindOrphanedCPUs(domains []PCIEDomain, allCPUs cpuset.CPUSet) cpuset.CPUSet
func OnlineCPUs ¶
func ScanPCIDevices ¶
func ScanPCIDevices(sysfs SysFS, processDevice func(PCIEDevice) error) error
Types ¶
type PCIEDevice ¶
func (PCIEDevice) BaseDirPath ¶
func (pciDev PCIEDevice) BaseDirPath() string
func (PCIEDevice) SysfsPath ¶
func (pciDev PCIEDevice) SysfsPath() string
type PCIEDomain ¶
type PCIEDomain struct {
PCIERootAttr deviceattribute.DeviceAttribute
LocalCPUs cpuset.CPUSet
NUMANode int
}
func PCIEDomainsFromFS ¶
func PCIEDomainsFromFS(lh logr.Logger, sysfs SysFS) ([]PCIEDomain, error)
func (PCIEDomain) Loggable ¶ added in v0.0.10
func (pcd PCIEDomain) Loggable() []any
func (PCIEDomain) Root ¶
func (pcd PCIEDomain) Root() string
func (PCIEDomain) String ¶
func (pcd PCIEDomain) String() string
Click to show internal directories.
Click to hide internal directories.