Linux Kernel设备驱动模型之 struct device_node

严格说,此数据结构不是设备模型中的,它是一个DTS中节点对应的内存中设备描述,一般此
对象代表一个设备。

struct device_node {  const char *name;  const char *type;  phandle phandle;  const char *full_name;  struct fwnode_handle fwnode;

 struct property *properties;  struct property *deadprops; /* removed properties */  struct device_node *parent;  struct device_node *child;  struct device_node *sibling;  struct kobject kobj;  unsigned long _flags;  void *data; #if defined(CONFIG_SPARC)  const char *path_component_name;  unsigned int unique_id;  struct of_irq_controller *irq_trans; #endif };

 
 

你可能感兴趣的:(Linux,Kernel,设备驱动)