Structs§
Enums§
Constants§
Functions§
- compute_
device_ label - Compute the display label for a single device given the full device list + nickname map. The rule:
- parse_
sysfs_ pci_ id - Parse a sysfs PCI ID file (
/sys/.../device/vendorordevice/device). These files contain a single line like0x8086\n. ReturnsNoneon any read or parse failure — non-PCI interfaces (lo,veth*, bond masters, WireGuard) have no such file and that’s not an error. - validate_
nickname - Validate and normalize a user-supplied nickname.