Name

of_parse_phandle — find a node pointed by phandle in a list

Synopsis

struct device_node * of_parse_phandle (const struct device_node * np,
 const char * phandle_name,
 int index);
 

Arguments

np

Pointer to node that contains the phandle list

phandle_name

Name of property that contains the phandle list

index

Index into the phandle list

Description

Resolve a phandle to a device node pointer.

The phandle is an element of the property phandle_name in node np. The property list contains only phandles; it does not contain any arguments.

Index specifies which element of property handle_name_name contains the desired phandle. Index is zero-based.

Return

A node pointer with refcount incremented, use of_node_put on it when done. NULL if node is not found.