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"
8 di_minor_devt, di_minor_name, di_minor_nodetype, di_minor_spectype \- return
9 libdevinfo minor node information
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);
21 \fBchar *\fR\fBdi_minor_name\fR(\fBdi_minor_t\fR \fIminor\fR);
26 \fBchar *\fR\fBdi_minor_nodetype\fR(\fBdi_minor_t\fR \fIminor\fR);
31 \fBint\fR \fBdi_minor_spectype\fR(\fBdi_minor_t\fR \fIminor\fR);
41 A handle to minor data node.
47 These functions return \fBlibdevinfo\fR minor node information.
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.
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.
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.
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.
71 No errors are defined.
75 See \fBattributes\fR(5) for descriptions of the following attributes:
83 ATTRIBUTE TYPE ATTRIBUTE VALUE
85 Interface Stability Evolving
93 \fBattributes\fR(5), \fBddi_create_minor_node\fR(9F), \fBgetmajor\fR(9F),
97 \fIWriting Device Drivers\fR