First page Back Continue Last page Overview Graphics
Driver-specific data structure
Each « framework » defines a structure that a device driver must register to be recognized as a device in this framework
- uart_port for serial port, netdev for network devices, fb_info for framebuffers, etc.
In addition to this structure, the driver usually needs to store additional informations about its device
This is typically done
- By subclassing the « framework » structure
- Or by storing a reference to the « framework » structure