First page Back Continue Last page Overview Graphics
Link between structures (1)
The « framework » typically contains a struct device * pointer that the driver must point to the corresponding struct device
- It's the relation between the logical device (for example a network interface) and the physical device (for example the USB network adapter)
The device structure also contains a void * pointer that the driver can freely use.
- It's often use to link back the device to the higher-level structure from the framework.
- It allows, for example, from the platform_device structure, to find the structure describing the logical device