Skip to main content

Module registry

Module registry 

Source
Expand description

Bus driver registry : discovers and instantiates all known bus drivers.

Each driver implements the BusDriver trait and declares one or more DeviceTree-compatible strings. The registry attempts to initialise every driver; those that succeed are made available through the /bus/ VFS scheme under their own name (e.g. /bus/simple-pm-bus/status).

On systems that lack DeviceTree (e.g. x86) only generic drivers such as SimplePmBus are expected to succeed. On ARM / embedded platforms the SoC-specific drivers will match their corresponding hardware blocks.

Functionsยง

init_all
Initialise all known bus drivers and return the ones that succeeded.
try_init ๐Ÿ”’
Try to probe and init a driver; log and return (name, driver) on success.