Documentation
¶
Overview ¶
Package pci provides utils to work with pcifunction.Function
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool manages pcifunction.Function
func NewPCIPool ¶ added in v1.2.0
func NewPCIPool(pciDevicesPath, pciDriversPath, vfioDir string, cfg *config.Config, skipDriverCheck bool) (*Pool, error)
NewPCIPool returns a new PCI Pool
func NewTestPool ¶
func NewTestPool(physicalFunctions map[string]*sriovtest.PCIPhysicalFunction, cfg *config.Config) (*Pool, error)
NewTestPool returns a new PCI Pool for testing
func (*Pool) BindDriver ¶
BindDriver binds selected IOMMU group to the given driver type
func (*Pool) GetPCIFunction ¶
func (p *Pool) GetPCIFunction(pciAddr string) (sriov.PCIFunction, error)
GetPCIFunction returns PCI function for the given PCI address
Click to show internal directories.
Click to hide internal directories.