hwids

package module
v0.0.0-...-5d796fd Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 5 Imported by: 0

README

Warning: this project has migrated to gitlab.freedesktop.org.

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