Deleted Added
full compact
devclass_get_maxunit.9 (212500) devclass_get_maxunit.9 (233648)
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/devclass_get_maxunit.9 212500 2010-09-12 17:53:36Z gjb $
29.\" $FreeBSD: head/share/man/man9/devclass_get_maxunit.9 233648 2012-03-29 05:02:12Z eadler $
30.\"
31.Dd September 10, 2010
32.Dt DEVCLASS_GET_MAXUNIT 9
33.Os
34.Sh NAME
35.Nm devclass_get_maxunit
36.Nd find the maximum unit number in the class
37.Sh SYNOPSIS

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

43Returns the next unit number to be allocated to device instances in the
44.Dv devclass .
45This is one greater than the highest currently allocated unit.
46.Sh RETURN VALUES
47The
48.Fn devclass_get_maxunit
49function returns -1 if
50.Fa dc
30.\"
31.Dd September 10, 2010
32.Dt DEVCLASS_GET_MAXUNIT 9
33.Os
34.Sh NAME
35.Nm devclass_get_maxunit
36.Nd find the maximum unit number in the class
37.Sh SYNOPSIS

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

43Returns the next unit number to be allocated to device instances in the
44.Dv devclass .
45This is one greater than the highest currently allocated unit.
46.Sh RETURN VALUES
47The
48.Fn devclass_get_maxunit
49function returns -1 if
50.Fa dc
51is
51is
52.Dv NULL;
53otherwise it returns the next unit
54number in
55.Fa dc's
56devclass.
57.Sh ERRORS
58None.
59.Sh SEE ALSO
60.Xr devclass 9 ,
61.Xr device 9
62.Sh AUTHORS
63This manual page was written by
64.An Doug Rabson .
65.Sh BUGS
66The name is confusing since it is one greater than the maximum unit.
52.Dv NULL;
53otherwise it returns the next unit
54number in
55.Fa dc's
56devclass.
57.Sh ERRORS
58None.
59.Sh SEE ALSO
60.Xr devclass 9 ,
61.Xr device 9
62.Sh AUTHORS
63This manual page was written by
64.An Doug Rabson .
65.Sh BUGS
66The name is confusing since it is one greater than the maximum unit.