Skip to main content

Module scheme

Module scheme 

Source
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ยง

BusSchemeServer
OpenHandle ๐Ÿ”’

Enumsยง

HandleKind ๐Ÿ”’

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 ๐Ÿ”’