Documentation ¶
Index ¶
- Variables
- func DeviceDriverOverride(pciDev Device, driverOverride string) error
- func DeviceIOMMUGroup(slotName string) (uint64, error)
- func DeviceProbe(pciDev Device) error
- func DeviceSetDriverOverride(pciDev Device, driverOverride string) error
- func DeviceUnbind(pciDev Device) error
- func NormaliseAddress(addr string) string
- type Device
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeviceIsUSB = fmt.Errorf("Device is USB instead of PCI")
ErrDeviceIsUSB is returned when dealing with a USB device.
Functions ¶
func DeviceDriverOverride ¶
DeviceDriverOverride unbinds the device, sets the driver override preference, then probes the device, and waits for it to be activated with the specified driver.
func DeviceIOMMUGroup ¶
DeviceIOMMUGroup returns the IOMMU group for a PCI device.
func DeviceProbe ¶
DeviceProbe probes a PCI device using its PCI Slot Name.
func DeviceSetDriverOverride ¶
DeviceSetDriverOverride registers an override driver for a PCI device using its PCI Slot Name.
func DeviceUnbind ¶
DeviceUnbind unbinds a PCI device from the OS using its PCI Slot Name.
func NormaliseAddress ¶
NormaliseAddress converts common PCI address notation to the kernel's notation.
Types ¶
Click to show internal directories.
Click to hide internal directories.