pci

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package pci provides PCI util functions for health tast.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(d []Device)

Sort sorts a slice of Devices.

Types

type Device

type Device struct {
	VendorID string
	DeviceID string
	Vendor   string
	Device   string
	Class    string
	ProgIf   string
	Driver   *string
}

Device holds the result from lspci.

func ExpectedDevices

func ExpectedDevices(ctx context.Context) ([]Device, error)

ExpectedDevices returns expected PCI devices, sorted by VendorID + DeviceID.

Jump to

Keyboard shortcuts

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