package pci

import "github.com/Microsoft/hcsshim/internal/guest/storage/pci"

Index

Functions

func FindDeviceBusLocationFromVMBusGUID

func FindDeviceBusLocationFromVMBusGUID(ctx context.Context, vmBusGUID string) (string, error)

FindDeviceBusLocationFromVMBusGUID finds device bus location by reading /sys/bus/vmbus/devices/<vmBusGUID>/... for pci specific directories

func FindDeviceFullPath

func FindDeviceFullPath(ctx context.Context, vmBusGUID string) (string, error)

FindDeviceFullPath finds the full PCI device path in the form of /sys/bus/vmbus/devices/<vmBusGUID>/pciXXXX:XX/XXXX:XX*

func WaitForPCIDeviceFromVMBusGUID

func WaitForPCIDeviceFromVMBusGUID(ctx context.Context, vmBusGUID string) error

WaitForPCIDeviceFromVMBusGUID waits for bus location path of the device to be present

Source Files

doc.go pci.go

Version
v0.13.0 (latest)
Published
Apr 21, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
11 hours ago

Tools for package owners.