of_find_node_opts_by_path — find a node matching a full OF path
struct device_node * of_find_node_opts_by_path ( | const char * path, |
const char ** opts) ; |
path
Either the full path to match, or if the path does not start with '/', a path beginning with an alias.
opts
If not NULL, pointer into which to store the start of the options string.
Find the deepest (rightmost) node in path
.
If the path
does not start with '/' then the first component of the path
is the name of a property in the “/aliases” node whose value is a path.
That value is substituted into path
in place of the property name before
finding the deepest node in path
.
If path
includes a ':' separator then the bytes following the ':' are the
option string.
Valid forms for path
/foo/bar Full path
foo Valid alias
foo/bar Valid alias + relative path
A node pointer with refcount incremented, use
of_node_put
on it when done. NULL if node is not found.