Linux Kernel设备驱动模型之struct device

    xiaoxiao2021-03-25  91

    设备私有数据描述: /**  * struct device_private - structure to hold the private to the driver core portions of the device structure.  *  * @klist_children - klist containing all children of this device  * @knode_parent - node in sibling list  * @knode_driver - node in driver list  * @knode_bus - node in bus list  * @deferred_probe - entry in deferred_probe_list which is used to retry the  * binding of drivers which were unable to get all the resources needed by  * the device; typically because it depends on another driver getting  * probed first.  * @device - pointer back to the struct device that this structure is  * associated with.  *  * Nothing outside of the driver core should ever touch these fields.  */ struct device_private {  struct klist klist_children;  struct klist_node knode_parent;  struct klist_node knode_driver;  struct klist_node knode_bus;  struct list_head deferred_probe;  struct device *device; };    
    转载请注明原文地址: https://ju.6miu.com/read-15335.html

    最新回复(0)