diff options
Diffstat (limited to 'static/freebsd/man9/OF_finddevice.9 4.html')
| -rw-r--r-- | static/freebsd/man9/OF_finddevice.9 4.html | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/static/freebsd/man9/OF_finddevice.9 4.html b/static/freebsd/man9/OF_finddevice.9 4.html deleted file mode 100644 index 7bc1d29a..00000000 --- a/static/freebsd/man9/OF_finddevice.9 4.html +++ /dev/null @@ -1,73 +0,0 @@ -<table class="head"> - <tr> - <td class="head-ltitle">OF_FINDDEVICE(9)</td> - <td class="head-vol">Kernel Developer's Manual</td> - <td class="head-rtitle">OF_FINDDEVICE(9)</td> - </tr> -</table> -<div class="manual-text"> -<section class="Sh"> -<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> -<p class="Pp"><code class="Nm">OF_finddevice</code> — - <span class="Nd">find node in device tree</span></p> -</section> -<section class="Sh"> -<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> -<p class="Pp"><code class="In">#include - <<a class="In">dev/ofw/ofw_bus.h</a>></code> - <br/> - <code class="In">#include - <<a class="In">dev/ofw/ofw_bus_subr.h</a>></code></p> -<p class="Pp"><var class="Ft">phandle_t</var> - <br/> - <code class="Fn">OF_finddevice</code>(<var class="Fa" style="white-space: nowrap;">const - char *path</var>);</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> -<p class="Pp"><a class="permalink" href="#OF_finddevice"><code class="Fn" id="OF_finddevice">OF_finddevice</code></a>() - returns the phandle for the node specified by the - <var class="Fa">path</var>. Returns -1 if the path cannot be found in the - tree.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1> -<div class="Bd Li"> -<pre> phandle_t root, i2c; - - root = OF_finddevice("/"); - i2c = OF_finddevice("/soc/axi/i2c@a0e0000"); - if (i2c != -1) { - ... - }</pre> -</div> -</section> -<section class="Sh"> -<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE - ALSO</a></h1> -<p class="Pp"><a class="Xr">OF_child(9)</a>, <a class="Xr">OF_parent(9)</a>, - <a class="Xr">OF_peer(9)</a></p> -</section> -<section class="Sh"> -<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> -<p class="Pp">This manual page was written by <span class="An">Oleksandr - Tymoshenko</span> - <<a class="Mt" href="mailto:gonzo@FreeBSD.org">gonzo@FreeBSD.org</a>>.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="CAVEATS"><a class="permalink" href="#CAVEATS">CAVEATS</a></h1> -<p class="Pp">The return value should only be checked with equality operators - (equal to, not equal to) and not relational comparison (less than, greater - than ). There is a discrepancy between IEEE 1275 standard and - <span class="Ux">FreeBSD</span>'s internal representation of a phandle: IEEE - 1275 requires the return value of this function to be -1 if the path is not - found. But phandle_t is an unsigned type, so it cannot be relationally - compared with -1 or 0, this comparison is always true or always false.</p> -</section> -</div> -<table class="foot"> - <tr> - <td class="foot-date">April 9, 2018</td> - <td class="foot-os">FreeBSD 15.0</td> - </tr> -</table> |
