sysfs

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMountPoint = "/sys"

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS string

func NewDefaultFS

func NewDefaultFS() (FS, error)

func NewFS

func NewFS(mountPoint string) (FS, error)

func (FS) PCIDevice

func (fs FS) PCIDevice(address ghw.PCIAddress) (PCIDevice, error)

func (FS) PCIDevicePath

func (fs FS) PCIDevicePath(segments ...string) string

func (FS) PCIDevices

func (fs FS) PCIDevices() ([]PCIDevice, error)

func (FS) Path

func (fs FS) Path(segments ...string) string

type PCIDevice

type PCIDevice string

func (PCIDevice) Address

func (p PCIDevice) Address() (*ghw.PCIAddress, error)

func (PCIDevice) Physfn

func (p PCIDevice) Physfn() (PCIDevice, error)

func (PCIDevice) SRIOV

func (p PCIDevice) SRIOV() (*SRIOV, error)

func (PCIDevice) Virtfns

func (p PCIDevice) Virtfns() ([]PCIDevice, error)

type SRIOV

type SRIOV struct {
	NumVFs   uint64 `sysfs:"sriov_numvfs"`
	TotalVFs uint64 `sysfs:"sriov_totalvfs"`
	Offset   uint64 `sysfs:"sriov_offset"`
	Stride   uint64 `sysfs:"sriov_stride"`
}

Jump to

Keyboard shortcuts

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