pcifunction

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package pcifunction provides classes for linux PCI functions API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

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

Function describes Linux PCI function

func (*Function) BindDriver

func (f *Function) BindDriver(driver string) error

BindDriver unbinds currently bound driver and binds the given driver to f

func (*Function) GetBoundDriver

func (f *Function) GetBoundDriver() (string, error)

GetBoundDriver returns driver name that is bound to f, if no driver bound, returns ""

func (*Function) GetIOMMUGroup

func (f *Function) GetIOMMUGroup() (uint, error)

GetIOMMUGroup returns f IOMMU group id

func (*Function) GetNetInterfaceName

func (f *Function) GetNetInterfaceName() (string, error)

GetNetInterfaceName returns f net interface name

func (*Function) GetPCIAddress

func (f *Function) GetPCIAddress() string

GetPCIAddress returns f PCI address

type PhysicalFunction

type PhysicalFunction struct {
	Function
	// contains filtered or unexported fields
}

PhysicalFunction describes Linux PCI physical function

func NewPhysicalFunction

func NewPhysicalFunction(pciAddress, pciDevicesPath, pciDriversPath string) (*PhysicalFunction, error)

NewPhysicalFunction returns a new PhysicalFunction

func (*PhysicalFunction) GetVirtualFunctions

func (pf *PhysicalFunction) GetVirtualFunctions() []*Function

GetVirtualFunctions returns pf virtual functions

Jump to

Keyboard shortcuts

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