package
0.17.1
Repository: https://github.com/nvidia/k8s-device-plugin.git
Documentation: pkg.go.dev

# Functions

GetByte returns a single byte of data at specified position.
GetLong returns 4 bytes of data from specified position.
GetWord returns 2 bytes of data from specified position.
NewMockNvidiaPCI initializes and returns mock PCI interface type.
NewMockVGPU initializes and returns mock Interface interface type.
NewNvidiaPCILib returns an instance of NvidiaPCILib implementing the NvidiaPCI interface.
NewVGPULib returns an instance of Lib implementing the VGPU interface.

# Constants

HostDriverBranchLength indicates max length of driver branch.
HostDriverVersionLength indicates max length of driver version.
PciCapabilityLength indicates offset for capability length.
PciCapabilityList indicates offset of first capability list entry.
PciCapabilityListID indicates offset for capability id.
PciCapabilityListNext indicates offset for next capability in the list.
PciCapabilityVendorSpecificID indicates PCI vendor specific capability id.
PciDevicesRoot represents base path for all pci devices under sysfs.
PciNvidiaVendorID represents PCI vendor id for Nvidia.
PciStatusByte indicates status byte.
PciStatusCapabilityList indicates if capability list is supported.
VGPUCapabilityRecordStart indicates offset of beginning vGPU capability record.

# Structs

Device is just an alias to a PCIDevice.
Info represents vGPU driver info running on underlying hypervisor host.
Lib implements the NvidiaVGPU interface.
MockNvidiaPCI represents mock of NvidiaPCI interface.
NvidiaPCILib implements the NvidiaPCI interface.
PCIDevice represents a single PCI device.

# Interfaces

Interface allows us to get a list of vGPU specific PCI devices.
NvidiaPCI interface allows us to get a list of all NVIDIA PCI devices.