summaryrefslogtreecommitdiff
path: root/static/freebsd/man9/device_get_property.9 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man9/device_get_property.9 3.html')
-rw-r--r--static/freebsd/man9/device_get_property.9 3.html92
1 files changed, 0 insertions, 92 deletions
diff --git a/static/freebsd/man9/device_get_property.9 3.html b/static/freebsd/man9/device_get_property.9 3.html
deleted file mode 100644
index 33387eef..00000000
--- a/static/freebsd/man9/device_get_property.9 3.html
+++ /dev/null
@@ -1,92 +0,0 @@
-<table class="head">
- <tr>
- <td class="head-ltitle">DEVICE_GET_PROPERTY(9)</td>
- <td class="head-vol">Kernel Developer's Manual</td>
- <td class="head-rtitle">DEVICE_GET_PROPERTY(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">device_get_property</code>,
- <code class="Nm">device_has_property</code> &#x2014; <span class="Nd">access
- device specific data</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
- &lt;<a class="In">sys/param.h</a>&gt;</code>
- <br/>
- <code class="In">#include &lt;<a class="In">sys/bus.h</a>&gt;</code></p>
-<p class="Pp"><var class="Ft">ssize_t</var>
- <br/>
- <code class="Fn">device_get_property</code>(<var class="Fa" style="white-space: nowrap;">device_t
- dev</var>, <var class="Fa" style="white-space: nowrap;">const char
- *prop</var>, <var class="Fa" style="white-space: nowrap;">void *val</var>,
- <var class="Fa" style="white-space: nowrap;">size_t sz</var>,
- <var class="Fa" style="white-space: nowrap;">device_property_type_t
- type</var>);</p>
-<p class="Pp"><var class="Ft">bool</var>
- <br/>
- <code class="Fn">device_has_property</code>(<var class="Fa" style="white-space: nowrap;">device_t
- dev</var>, <var class="Fa" style="white-space: nowrap;">const char
- *prop</var>);</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
-<p class="Pp">Access device specific data provided by the parent bus. Drivers
- can use these properties to obtain device capabilities and set necessary
- quirks.</p>
-<p class="Pp">The underlying property type is specified with the
- <var class="Fa">type</var> argument. Currently the following types are
- supported:</p>
-<dl class="Bl-tag">
- <dt id="DEVICE_PROP_BUFFER"><a class="permalink" href="#DEVICE_PROP_BUFFER"><code class="Dv">DEVICE_PROP_BUFFER</code></a></dt>
- <dd>The underlying property is a string of bytes.</dd>
- <dt id="DEVICE_PROP_ANY"><a class="permalink" href="#DEVICE_PROP_ANY"><code class="Dv">DEVICE_PROP_ANY</code></a></dt>
- <dd>Wildcard property type.</dd>
- <dt id="DEVICE_PROP_HANDLE"><a class="permalink" href="#DEVICE_PROP_HANDLE"><code class="Dv">DEVICE_PROP_HANDLE</code></a></dt>
- <dd>Following a reference the underlying property is a handle of the
- respective bus.</dd>
- <dt id="DEVICE_PROP_UINT32"><a class="permalink" href="#DEVICE_PROP_UINT32"><code class="Dv">DEVICE_PROP_UINT32</code></a></dt>
- <dd>The underlying property is an array of unsigned 32 bit integers. The
- <var class="Fa">sz</var> argument shall be a multiple of 4.</dd>
- <dt id="DEVICE_PROP_UINT64"><a class="permalink" href="#DEVICE_PROP_UINT64"><code class="Dv">DEVICE_PROP_UINT64</code></a></dt>
- <dd>The underlying property is an array of unsigned 64 bit integers. The
- <var class="Fa">sz</var> argument shall be a multiple of 8.</dd>
-</dl>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="NOTES"><a class="permalink" href="#NOTES">NOTES</a></h1>
-<p class="Pp">You can pass NULL as pointer to property's value when calling
- <a class="permalink" href="#device_get_property"><code class="Fn" id="device_get_property">device_get_property</code></a>()
- to obtain its size.</p>
-<p class="Pp">Currently this interface is implemented by
- <a class="Xr">simplebus(4)</a> and <a class="Xr">acpi(4)</a>.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
- VALUES</a></h1>
-<p class="Pp"><code class="Fn">device_get_property</code>() if successful
- returns property's size, otherwise returns -1.</p>
-<p class="Pp"><code class="Fn">device_has_property</code>() returns true if
- given property was found.</p>
-</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">acpi(4)</a>, <a class="Xr">simplebus(4)</a>,
- <a class="Xr">device(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">Bartlomiej
- Grzesik</span>.</p>
-</section>
-</div>
-<table class="foot">
- <tr>
- <td class="foot-date">September 29, 2022</td>
- <td class="foot-os">FreeBSD 15.0</td>
- </tr>
-</table>