pci

package
v0.0.0-...-2801263 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Class3DController Class = 0x030200

	VendorNvidia Vendor = 0x10de
)

Functions

func NewReader

func NewReader(log logr.Logger, vendorFilter Vendor, classFilter Class) (*reader, error)

func NewReaderWithMount

func NewReaderWithMount(log logr.Logger, mountPoint string, vendorFilter Vendor, classFilter Class) (*reader, error)

Types

type Address

type Address struct {
	Domain   uint
	Bus      uint
	Slot     uint
	Function uint
}

func (Address) String

func (p Address) String() string

type Class

type Class uint32

type Reader

type Reader interface {
	Read() ([]Address, error)
}

type Vendor

type Vendor uint32

Jump to

Keyboard shortcuts

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