Chapter 2. Device drivers infrastructure

Table of Contents

The Basic Device Driver-Model Structures
Device Drivers Base
Device Drivers DMA Management
Device Drivers Power Management
Device Drivers ACPI Support
Device drivers PnP support
Userspace IO devices

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
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.