Expand description
Rust wrappers for the PCI ID Repository.
The PCI ID Repository is the canonical source of PCI device information for most Linux userspaces; this crate vendors the PCI ID database to allow non-Linux hosts to access the same canonical information.
Usage
Iterating over all known vendors:
use pci_ids::Vendors;
for vendor in Vendors::iter() {
for device in vendor.devices() {
println!("vendor: {}, device: {}", vendor.name(), device.name());
}
}
Iterating over all known subclasses:
use pci_ids::Classes;
for class in Classes::iter() {
for subclass in class.subclasses() {
println!("class: {}, subclass: {}", class.name(), subclass.name());
}
}
See the individual documentation for each structure for more details.
Structs
Represents a PCI device class in the PCI database.
An abstraction for iterating over all classes in the PCI database.
Represents a single device in the PCI database.
Represents a programming interface to a PCI subclass in the PCI database.
Represents an subsystem to a PCI device in the PCI database.
Represents a PCI device subclass in the PCI database.
Represents a PCI device vendor in the PCI database.
An abstraction for iterating over all vendors in the PCI database.