vpci

package
v0.15.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	// GpuDeviceIDType is the assigned device ID type for GPU devices.
	GpuDeviceIDType = "gpu"

	// DeviceIDTypeLegacy is the legacy assigned device ID type for vPCI devices.
	DeviceIDTypeLegacy = "vpci"
	// DeviceIDType is the assigned device ID type for vPCI instance IDs.
	DeviceIDType = "vpci-instance-id"
)

Variables

This section is empty.

Functions

func GetDeviceInfoFromPath

func GetDeviceInfoFromPath(rawDevicePath string) (string, uint16)

GetDeviceInfoFromPath takes a device path and parses it into the PCI ID and virtual function index if one is specified.

func IsValidDeviceType

func IsValidDeviceType(deviceType string) bool

IsValidDeviceType returns true if the device type is valid i.e. supported by the runtime.

Types

This section is empty.

Jump to

Keyboard shortcuts

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