Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man3devinfo / di_minor_devt.3devinfo
blobd54a974335f5e71bcc430537498131bd48f1b661
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_DEVT 3DEVINFO "Dec 1, 1998"
7 .SH NAME
8 di_minor_devt, di_minor_name, di_minor_nodetype, di_minor_spectype \- return
9 libdevinfo minor node information
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-ldevinfo\fR [ \fIlibrary\fR... ]
14 #include <libdevinfo.h>
16 \fBdev_t\fR \fBdi_minor_devt\fR(\fBdi_minor_t\fR \fIminor\fR);
17 .fi
19 .LP
20 .nf
21 \fBchar *\fR\fBdi_minor_name\fR(\fBdi_minor_t\fR \fIminor\fR);
22 .fi
24 .LP
25 .nf
26 \fBchar *\fR\fBdi_minor_nodetype\fR(\fBdi_minor_t\fR \fIminor\fR);
27 .fi
29 .LP
30 .nf
31 \fBint\fR \fBdi_minor_spectype\fR(\fBdi_minor_t\fR \fIminor\fR);
32 .fi
34 .SH PARAMETERS
35 .sp
36 .ne 2
37 .na
38 \fB\fIminor\fR\fR
39 .ad
40 .RS 9n
41 A handle to minor data node.
42 .RE
44 .SH DESCRIPTION
45 .sp
46 .LP
47  These functions return \fBlibdevinfo\fR minor node information.
48 .SH RETURN VALUES
49 .sp
50 .LP
51 The \fBdi_minor_name()\fR function returns the minor \fIname\fR. See
52 \fBddi_create_minor_node\fR(9F) for a description of the \fIname\fR parameter.
53 .sp
54 .LP
55 The \fBdi_minor_devt()\fR function returns the \fBdev_t\fR value of the minor
56 node that is specified by SYS V ABI. See \fBgetmajor\fR(9F),
57 \fBgetminor\fR(9F), and \fBddi_create_minor_node\fR(9F) for more information.
58 .sp
59 .LP
60 The \fBdi_minor_spectype()\fR function returns the \fIspec_type\fR of the file,
61 either \fBS_IFCHR\fR or \fBS_IFBLK\fR. See \fBddi_create_minor_node\fR(9F) for
62 a description of the \fIspec_type\fR parameter.
63 .sp
64 .LP
65 The \fBdi_minor_nodetype()\fRfunction returns the minor \fInode_type\fR of the
66 minor node. See \fBddi_create_minor_node\fR(9F) for a description of the
67 \fInode_type\fR parameter.
68 .SH ERRORS
69 .sp
70 .LP
71 No errors are defined.
72 .SH ATTRIBUTES
73 .sp
74 .LP
75 See \fBattributes\fR(5) for descriptions of the following attributes:
76 .sp
78 .sp
79 .TS
80 box;
81 c | c
82 l | l .
83 ATTRIBUTE TYPE  ATTRIBUTE VALUE
85 Interface Stability     Evolving
87 MT-Level        Safe
88 .TE
90 .SH SEE ALSO
91 .sp
92 .LP
93 \fBattributes\fR(5), \fBddi_create_minor_node\fR(9F), \fBgetmajor\fR(9F),
94 \fBgetminor\fR(9F)
95 .sp
96 .LP
97 \fIWriting Device Drivers\fR