Expand description
Multi-driver VFS scheme served at /bus/.
Each successfully-initialised bus driver appears as a sub-directory:
/bus/ -> list of registered driver names + pci/
/bus/pci/inventory -> PCI device table
/bus/pci/count -> number of PCI devices
/bus/pci/rescan -> (write-only) refresh PCI cache
/bus/pci/find/<vid>/<did> -> find devices by vendor/device
/bus/pci/cfg/<b:d.f>/<off>/<w> -> raw PCI config read
/bus/<driver>/ -> driver info (compatible, errors, โฆ)
/bus/<driver>/status -> driver status
/bus/<driver>/error_count -> driver error count
/bus/<driver>/reg/<hex> -> read/write a driver register
/bus/<driver>/<child> -> child-device info (if the driver reports any)Structsยง
Enumsยง
- Handle
Kind ๐
Constantsยง
- DRV_
ERROR_ ๐COUNT - DRV_
REG_ ๐PREFIX - DRV_
RESUME ๐ - DRV_
STATUS ๐ - Driver-specific paths (relative to the driver prefix).
- DRV_
SUSPEND ๐ - FILEFLAG_
DIRECTORY ๐ - OPCODE_
CLOSE ๐ - OPCODE_
OPEN ๐ - OPCODE_
READ ๐ - OPCODE_
READDIR ๐ - OPCODE_
WRITE ๐ - PCI_
PREFIX ๐ - Top-level paths.
- REPLY_
MSG_ ๐TYPE - STATUS_
OK ๐