summaryrefslogtreecommitdiffstats
path: root/share/man/man9/device_get_state.9
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-24 13:41:48 +0000
committerru <ru@FreeBSD.org>2002-12-24 13:41:48 +0000
commit4979ab8d816b8ab1d2eb74e7179f8f63e04f0972 (patch)
tree3a2594ccf0dfa39e2b9d787edfbc673670ae29da /share/man/man9/device_get_state.9
parenta59d939300a476e89fd904d21bef510b0d7f7da0 (diff)
downloadFreeBSD-src-4979ab8d816b8ab1d2eb74e7179f8f63e04f0972.zip
FreeBSD-src-4979ab8d816b8ab1d2eb74e7179f8f63e04f0972.tar.gz
mdoc(7) police: Deal with self-xrefs.
Diffstat (limited to 'share/man/man9/device_get_state.9')
-rw-r--r--share/man/man9/device_get_state.912
1 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/device_get_state.9 b/share/man/man9/device_get_state.9
index e499336..20695bd 100644
--- a/share/man/man9/device_get_state.9
+++ b/share/man/man9/device_get_state.9
@@ -50,7 +50,7 @@
.Fn device_is_alive "device_t dev"
.Sh DESCRIPTION
The current state of a device is accessed by calling
-.Xr device_get_state 9
+.Fn device_get_state
which returns
.Dv DS_NOTPRESENT ,
.Dv DS_ALIVE ,
@@ -60,27 +60,27 @@ or
(described in
.Xr device 9 ) .
To test see if a device was successfully probed, call
-.Xr device_is_alive 9
+.Fn device_is_alive
which simply returns if the state is greater or equal to
.Dv DS_ALIVE .
.Pp
Each device has a busy count which is incremented when
-.Xr device_busy 9
+.Fn device_busy
is called and decremented when
-.Xr device_unbusy 9
+.Fn device_unbusy
is called. Both routines return an error if the device state is less
than
.Dv DS_ATTACHED .
.Pp
When
-.Xr device_busy 9
+.Fn device_busy
is called on a device in the
.Dv DS_ATTACHED
state, the device changes to the
.Dv DS_BUSY
state.
When
-.Xr device_unbusy 9
+.Fn device_unbusy
is called and after decrementing, the busy count for the device is
zero, the device changes to the
.Dv DS_ATTACHED
OpenPOWER on IntegriCloud