Deleted Added
full compact
device_get_state.9 (113829) device_get_state.9 (121380)
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1998 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
1.\" -*- nroff -*-
2.\"
3.\" Copyright (c) 1998 Doug Rabson
4.\"
5.\" All rights reserved.
6.\"
7.\" This program is free software.
8.\"

--- 12 unchanged lines hidden (view full) ---

21.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
22.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/share/man/man9/device_get_state.9 113829 2003-04-22 00:21:28Z imp $
29.\" $FreeBSD: head/share/man/man9/device_get_state.9 121380 2003-10-23 01:54:06Z hmp $
30.\"
31.Dd June 16, 1998
32.Dt DEVICE_GET_STATE 9
33.Os
34.Sh NAME
35.Nm device_get_state ,
36.Nm device_busy ,
37.Nm device_unbusy ,

--- 32 unchanged lines hidden (view full) ---

70.Fn device_is_attached
71which simply returns if the state is greater or equal to
72.Dv DS_ATTACHED .
73.Pp
74Each device has a busy count which is incremented when
75.Fn device_busy
76is called and decremented when
77.Fn device_unbusy
30.\"
31.Dd June 16, 1998
32.Dt DEVICE_GET_STATE 9
33.Os
34.Sh NAME
35.Nm device_get_state ,
36.Nm device_busy ,
37.Nm device_unbusy ,

--- 32 unchanged lines hidden (view full) ---

70.Fn device_is_attached
71which simply returns if the state is greater or equal to
72.Dv DS_ATTACHED .
73.Pp
74Each device has a busy count which is incremented when
75.Fn device_busy
76is called and decremented when
77.Fn device_unbusy
78is called. Both routines return an error if the device state is less
79than
78is called.
79Both routines return an error if the device state is less than
80.Dv DS_ATTACHED .
81.Pp
82When
83.Fn device_busy
84is called on a device in the
85.Dv DS_ATTACHED
86state, the device changes to the
87.Dv DS_BUSY

--- 12 unchanged lines hidden ---
80.Dv DS_ATTACHED .
81.Pp
82When
83.Fn device_busy
84is called on a device in the
85.Dv DS_ATTACHED
86state, the device changes to the
87.Dv DS_BUSY

--- 12 unchanged lines hidden ---