hwids

package module
v0.0.0-...-d0bb98d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package hwids parses hardware identification databases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PCI

type PCI struct {
	// contains filtered or unexported fields
}

func OpenPCI

func OpenPCI() (*PCI, error)

func (*PCI) Close

func (db *PCI) Close() error

func (*PCI) NextID

func (db *PCI) NextID() (*PCIID, error)

type PCIID

type PCIID struct {
	Type                 PCIType
	Vendor, Device       uint16
	SubVendor, SubDevice uint16

	VendorName, DeviceName string
	SubName                string
}

type PCIType

type PCIType int
const (
	PCIVendor PCIType = iota
	PCIDevice
	PCISubsystem
)

Jump to

Keyboard shortcuts

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