Merge commit 'dc97a43d4a70c8773a619f11b95b07a787f6f5b7' into merges
[unleashed.git] / share / man / man3devinfo / di_minor_next.3devinfo
blob0cee0b299956e882dc65ad866441a34725359a04
1 '\" te
2 .\" Copyright (c) 1998, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DI_MINOR_NEXT 3DEVINFO "Dec 1, 1998"
7 .SH NAME
8 di_minor_next \- libdevinfo minor node traversal functions
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-ldevinfo\fR [ \fIlibrary\fR... ]
13 #include <libdevinfo.h>
15 \fBdi_minor_t\fR \fBdi_minor_next\fR(\fBdi_node_t\fR \fInode\fR, \fBdi_minor_t\fR \fIminor\fR);
16 .fi
18 .SH PARAMETERS
19 .sp
20 .ne 2
21 .na
22 \fB\fIminor\fR\fR
23 .ad
24 .RS 9n
25 Handle to the current minor node or \fBDI_MINOR_NIL\fR.
26 .RE
28 .sp
29 .ne 2
30 .na
31 \fB\fInode\fR\fR
32 .ad
33 .RS 9n
34 Device node with which the minor node is associated.
35 .RE
37 .SH DESCRIPTION
38 .sp
39 .LP
40 The \fBdi_minor_next()\fR function returns a handle to the next minor node for
41 the device node \fInode\fR. If \fIminor\fR is \fBDI_MINOR_NIL\fR, a handle to
42 the first minor node is returned.
43 .SH RETURN VALUES
44 .sp
45 .LP
46 Upon successful completion, a  handle to the next minor node is returned.
47 Otherwise, \fBDI_MINOR_NIL\fR is returned and \fIerrno\fR is set to indicate
48 the error.
49 .SH ERRORS
50 .sp
51 .LP
52 The \fBdi_minor_next()\fR function will fail if:
53 .sp
54 .ne 2
55 .na
56 \fB\fBEINVAL\fR\fR
57 .ad
58 .RS 11n
59 Invalid argument.
60 .RE
62 .sp
63 .ne 2
64 .na
65 \fB\fBENOTSUP\fR\fR
66 .ad
67 .RS 11n
68 Minor node information is not available in snapshot.
69 .RE
71 .sp
72 .ne 2
73 .na
74 \fB\fBENXIO\fR\fR
75 .ad
76 .RS 11n
77 End of minor node list.
78 .RE
80 .SH ATTRIBUTES
81 .sp
82 .LP
83 See \fBattributes\fR(5) for descriptions of the following attributes:
84 .sp
86 .sp
87 .TS
88 box;
89 c | c
90 l | l .
91 ATTRIBUTE TYPE  ATTRIBUTE VALUE
93 Interface Stability     Evolving
95 MT-Level        Safe
96 .TE
98 .SH SEE ALSO
99 .sp
101 \fBlibdevinfo\fR(3LIB), \fBattributes\fR(5)
104 \fIWriting Device Drivers\fR