pcidb

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Vendor    string
	Device    string
	Subsystem string
}

Entry for the OCI ID database https://man7.org/linux/man-pages/man5/pci.ids.5.html

func GetDevice

func GetDevice(vendor, device, subvendor, subdevice string) (*Entry, error)

getPCI iterates over the file until it finds the associated entry and returns the names it finds. Expect values in hexadecimal format without the 0x prefix Vendor: 025e --> Solidigm Device: 0b60 --> NVMe DC SSD [Sentinel Rock Plus controller] SubVendor: 025e , SubDevice: 8008 --> NVMe DC SSD U.2 15mm [D7-P5510]

Jump to

Keyboard shortcuts

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