pci

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pci provides methods to access PCI-related data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	VendorID  uint16
	ProductID uint16

	Vendor  string
	Product string
}

Device describes PCI device.

func SysfsDeviceInfo

func SysfsDeviceInfo(busPath string) (*Device, error)

SysfsDeviceInfo looks up vendor and product ID from sysfs.

func (*Device) LookupDB

func (d *Device) LookupDB()

LookupDB looks up device info in the PCI database.

Jump to

Keyboard shortcuts

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