您的位置:首页 > 运维架构 > Linux

Linux Kernel设备驱动模型之 struct device_node

2017-03-12 12:18 501 查看
严格说,此数据结构不是设备模型中的,它是一个DTS中节点对应的内存中设备描述,一般此

对象代表一个设备。

structdevice_node{
constchar*name;
constchar*type;
phandlephandle;
constchar*full_name;
structfwnode_handlefwnode;
structproperty*properties;
structproperty*deadprops;/*removedproperties*/
structdevice_node*parent;
structdevice_node*child;
structdevice_node*sibling;
structkobjectkobj;
unsignedlong_flags;
void*data;
#ifdefined(CONFIG_SPARC)
constchar*path_component_name;
unsignedintunique_id;
structof_irq_controller*irq_trans;
#endif
};



                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: