utils

package
v0.0.0-...-bea6b7f Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverOp

func DriverOp(pciAddress *string, driver string, op string) error

func DriverOverride

func DriverOverride(pciAddress *string, driver string) error

func GetDriver

func GetDriver(pciAddress *string) (string, error)
func GetLink(ifName string) error

func GetLinkMtu

func GetLinkMtu(ifName string) uint32

func GetNames

func GetNames(pciAddress *string) ([]string, error)

func GetNumVfs

func GetNumVfs(pciAddress *string) uint32

func GetTotalVfs

func GetTotalVfs(pciAddress *string) uint32

func GetVFIODeviceFile

func GetVFIODeviceFile(dev string) (devFileHost, devFileContainer string, err error)

GetVFIODeviceFile returns a vfio device files for vfio-pci bound PCI device's PCI address

func GetVfPciAddressFromVFIndex

func GetVfPciAddressFromVFIndex(pciAddress *string, vfIndex uint32) (string, error)

func IsSriovPF

func IsSriovPF(pciAddress *string) bool

func IsSriovVF

func IsSriovVF(pciAddress *string) bool

func SetIfName

func SetIfName(ifName string, newName string) error

func SetLinkMtu

func SetLinkMtu(ifName string, mtu uint32) error

func SetNumVfs

func SetNumVfs(pciAddress *string, numVfs uint32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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