pci

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PATH_SYS_BUS_PCI_DEVICES = "/sys/bus/pci/devices"
	PATH_SYS_DEVICES_PCI     = "/sys/devices/pci"
)

Variables

This section is empty.

Functions

func Lookup

func Lookup(searchType, ven, dev, class, subclass string) (string, error)

Types

type PciDevice

type PciDevice struct {
	Bus               string
	VendorID          string
	DeviceID          string
	Class             string
	SubsysVendor      string
	SubsysDevice      string
	Irq               string
	Revision          string
	VendorName        string
	DeviceName        string
	DeviceClass       string
	Subsystem         string
	KernelModule      string
	KernelModuleAlias string
	KernelDriver      string
}

func ParsePciDevices

func ParsePciDevices() (PciDevices []PciDevice, err error)

Jump to

Keyboard shortcuts

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