summaryrefslogtreecommitdiff
path: root/static/freebsd/man9/device_get_state.9 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man9/device_get_state.9 3.html')
-rw-r--r--static/freebsd/man9/device_get_state.9 3.html90
1 files changed, 0 insertions, 90 deletions
diff --git a/static/freebsd/man9/device_get_state.9 3.html b/static/freebsd/man9/device_get_state.9 3.html
deleted file mode 100644
index f430ef69..00000000
--- a/static/freebsd/man9/device_get_state.9 3.html
+++ /dev/null
@@ -1,90 +0,0 @@
-<table class="head">
- <tr>
- <td class="head-ltitle">DEVICE_GET_STATE(9)</td>
- <td class="head-vol">Kernel Developer's Manual</td>
- <td class="head-rtitle">DEVICE_GET_STATE(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_state</code>,
- <code class="Nm">device_busy</code>, <code class="Nm">device_unbusy</code>,
- <code class="Nm">device_is_alive</code>,
- <code class="Nm">device_is_attached</code> &#x2014;
- <span class="Nd">manipulate device state</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">device_state_t</var>
- <br/>
- <code class="Fn">device_get_state</code>(<var class="Fa" style="white-space: nowrap;">device_t
- dev</var>);</p>
-<p class="Pp"><var class="Ft">void</var>
- <br/>
- <code class="Fn">device_busy</code>(<var class="Fa" style="white-space: nowrap;">device_t
- dev</var>);</p>
-<p class="Pp"><var class="Ft">void</var>
- <br/>
- <code class="Fn">device_unbusy</code>(<var class="Fa" style="white-space: nowrap;">device_t
- dev</var>);</p>
-<p class="Pp"><var class="Ft">int</var>
- <br/>
- <code class="Fn">device_is_alive</code>(<var class="Fa" style="white-space: nowrap;">device_t
- dev</var>);</p>
-<p class="Pp"><var class="Ft">int</var>
- <br/>
- <code class="Fn">device_is_attached</code>(<var class="Fa" style="white-space: nowrap;">device_t
- dev</var>);</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
-<p class="Pp">The current state of a device is accessed by calling
- <a class="permalink" href="#device_get_state"><code class="Fn" id="device_get_state">device_get_state</code></a>()
- which returns <code class="Dv">DS_NOTPRESENT</code>,
- <code class="Dv">DS_ALIVE</code>, <code class="Dv">DS_ATTACHED</code> or
- <code class="Dv">DS_BUSY</code> (described in <a class="Xr">device(9)</a>).
- To test see if a device was successfully probed, call
- <a class="permalink" href="#device_is_alive"><code class="Fn" id="device_is_alive">device_is_alive</code></a>()
- which simply returns if the state is greater or equal to
- <code class="Dv">DS_ALIVE</code>. To test see if a device was successfully
- attached, call
- <a class="permalink" href="#device_is_attached"><code class="Fn" id="device_is_attached">device_is_attached</code></a>()
- which simply returns if the state is greater or equal to
- <code class="Dv">DS_ATTACHED</code>.</p>
-<p class="Pp" id="device_busy">Each device has a busy count which is incremented
- when
- <a class="permalink" href="#device_busy"><code class="Fn">device_busy</code></a>()
- is called and decremented when
- <a class="permalink" href="#device_unbusy"><code class="Fn" id="device_unbusy">device_unbusy</code></a>()
- is called. Both routines return an error if the device state is less than
- <code class="Dv">DS_ATTACHED</code>.</p>
-<p class="Pp" id="device_busy~2">When
- <a class="permalink" href="#device_busy~2"><code class="Fn">device_busy</code></a>()
- is called on a device in the <code class="Dv">DS_ATTACHED</code> state, the
- device changes to the <code class="Dv">DS_BUSY</code> state. When
- <a class="permalink" href="#device_unbusy~2"><code class="Fn" id="device_unbusy~2">device_unbusy</code></a>()
- is called and after decrementing, the busy count for the device is zero, the
- device changes to the <code class="Dv">DS_ATTACHED</code> state.</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">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">Doug
- Rabson</span>.</p>
-</section>
-</div>
-<table class="foot">
- <tr>
- <td class="foot-date">June 16, 1998</td>
- <td class="foot-os">FreeBSD 15.0</td>
- </tr>
-</table>