Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/OF_node_from_xref.9
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
to the device tree nodes, and these values do not match | to the device tree nodes, and these values do not match | ||||
the values of "phandle" properties. | the values of "phandle" properties. | ||||
.Fn OF_node_from_xref | .Fn OF_node_from_xref | ||||
and | and | ||||
.Fn OF_xref_from_node | .Fn OF_xref_from_node | ||||
are used to perform conversion between these two kinds of node | are used to perform conversion between these two kinds of node | ||||
identifiers. | identifiers. | ||||
.Pp | .Pp | ||||
The functions | |||||
.Fn OF_node_from_xref | .Fn OF_node_from_xref | ||||
and | |||||
.Fn OF_xref_from_node | |||||
returns the kernel phandle for the effective phandle | returns the kernel phandle for the effective phandle | ||||
bcr: s/returns/return/ | |||||
.Fa xref . | |||||
If one cannot be found or the OpenFirmware implementation | |||||
does not support effective phandles, the function returns | |||||
the input value. | |||||
.Pp | |||||
.Fn OF_xref_from_xref | |||||
returns the effective phandle for the kernel phandle | |||||
.Fa xref . | .Fa xref . | ||||
If one cannot be found or the OpenFirmware implementation | If one cannot be found or the OpenFirmware implementation | ||||
does not support effective phandles, the function returns | does not support effective phandles, the function returns | ||||
the input value. | the input value. | ||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
.Bd -literal | .Bd -literal | ||||
phandle_t panelnode, panelxref; | phandle_t panelnode, panelxref; | ||||
char *model; | char *model; | ||||
Show All 15 Lines |
s/returns/return/