Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ILLEGAL a token which the Lexer does not understand. ILLEGAL token = iota // EOF end of file. EOF // WS whitespace. WS // NEWLINE '\n'. NEWLINE // COMMENT '# something'. COMMENT // VENDOR PCI vendor. VENDOR // SUBVENDOR PCI subvendor. SUBVENDOR // DEVICE PCI device. DEVICE // CLASS PCI class. CLASS // SUBCLASS PCI subclass. SUBCLASS // PROGIF PCI programming interface. PROGIF )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { GetDeviceName(uint16, uint16) (string, error) GetClassName(uint32) (string, error) }
Interface returns textual description of specific attributes of PCI devices.
type Option ¶
type Option func(*pcidb)
Option defines a function for passing options to the NewDB() call.
func WithFilePath ¶
WithFilePath provides an Option to set the file path for the pciids database used by pciids interface. The file path provided takes precedence over all other paths.
Click to show internal directories.
Click to hide internal directories.