Chapter 2. Device drivers infrastructure
The Basic Device Driver-Model Structures
- struct bus_type —
The bus type of the device
- struct device_driver —
The basic device driver structure
- struct subsys_interface —
interfaces to device functions
name
name of the device function subsystem
subsytem of the devices to attach to node
the list of functions registered at the subsystem add
device hookup to device function handler remove
device hookup to device function handler
- struct class —
device classes
- struct device —
The basic device structure
- module_driver —
Helper macro for drivers that don't do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces
module_init
and module_exit
.