Device Tree¶
Nodes¶
Getting nodes¶
There are a lot of different ways to do this dependent on what information you have. The of_find_###
functions are probably what you need.
When finished you need to free the node.
Freeing nodes¶
Get resource from a node¶
The data in a node is referred to as a resource
. There are various ways to get this, one of the most simple is of_address_to_resource
.
This does not need freeing when done.