pci

package
v1.11.2-rc.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Overview

Package pci provides utils to work with pcifunction.Function

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateConfig

func UpdateConfig(pciDevicesPath, pciDriversPath string, cfg *config.Config) error

UpdateConfig updates config with virtual 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 NewPool

func NewPool(pciDevicesPath, pciDriversPath, vfioDir string, cfg *config.Config) (*Pool, error)

NewPool 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

func (p *Pool) BindDriver(ctx context.Context, iommuGroup uint, driverType sriov.DriverType) error

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

Jump to

Keyboard shortcuts

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