Move everything from /var/adm to /var/log
[unleashed.git] / share / man / man3devinfo / di_lnode_name.3devinfo
blob43746015454e04d5d0c2966530a4129cf7150a8f
1 '\" te
2 .\" Copyright (c) 2004, 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_LNODE_NAME 3DEVINFO "Mar 22, 2004"
7 .SH NAME
8 di_lnode_name, di_lnode_devinfo, di_lnode_devt \- return libdevinfo lnode
9 information
10 .SH SYNOPSIS
11 .LP
12 .nf
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-ldevinfo\fR [ \fIlibrary\fR\&.\|.\|. ]
14 #include <libdevinfo.h>
16 \fBchar *\fR\fBdi_lnode_name\fR(\fBdi_lnode_t\fR \fIlnode\fR);
17 .fi
19 .LP
20 .nf
21 \fBdi_node_t\fR \fBdi_lnode_devinfo\fR(\fBdi_lnode_t\fR \fIlnode\fR);
22 .fi
24 .LP
25 .nf
26 \fBint\fR \fBdi_lnode_devt\fR(\fBdi_lnode_t\fR \fIlnode\fR, \fBdev_t *\fR\fIdevt\fR);
27 .fi
29 .SH PARAMETERS
30 .sp
31 .ne 2
32 .na
33 \fB\fIlnode\fR\fR
34 .ad
35 .RS 9n
36 A handle to an lnode.
37 .RE
39 .sp
40 .ne 2
41 .na
42 \fB\fIdevt\fR\fR
43 .ad
44 .RS 9n
45 A pointer to a \fBdev_t\fR that can be returned.
46 .RE
48 .SH DESCRIPTION
49 .sp
50 .LP
51 These functions return \fBlibdevinfo\fR lnode information.
52 .sp
53 .LP
54 The \fBdi_lnode_name()\fR function returns a pointer to the name associated
55 with \fIlnode\fR.
56 .sp
57 .LP
58 The \fBdi_lnode_devinfo()\fR function returns a handle to the device node
59 associated with \fIlnode\fR.
60 .sp
61 .LP
62 The \fBdi_lnode_devt()\fR function sets the \fBdev_t\fR pointed to by the
63 \fIdevt\fR parameter to the \fBdev_t\fR associated with \fIlnode\fR.
64 .SH RETURN VALUES
65 .sp
66 .LP
67 The \fBdi_lnode_name()\fR function returns a pointer to the name associated
68 with \fIlnode\fR.
69 .sp
70 .LP
71 The \fBdi_lnode_devinfo()\fR function returns a handle to the device node
72 associated with \fIlnode\fR.
73 .sp
74 .LP
75 The \fBdi_lnode_devt()\fR function returns 0 if the requested attribute exists
76 in \fIlnode\fR and was returned. It returns \(mi1 if the requested attribute
77 does not exist and sets \fBerrno\fR to indicate the error.
78 .SH ERRORS
79 .sp
80 .LP
81 The \fBdi_lnode_devt()\fR function will fail if:
82 .sp
83 .ne 2
84 .na
85 \fB\fBEINVAL\fR\fR
86 .ad
87 .RS 10n
88 An argument was invalid.
89 .RE
91 .SH ATTRIBUTES
92 .sp
93 .LP
94 See \fBattributes\fR(5) for descriptions of the following attributes:
95 .sp
97 .sp
98 .TS
99 box;
100 c | c
101 l | l .
102 ATTRIBUTE TYPE  ATTRIBUTE VALUE
104 Interface Stability     Evolving
106 MT-Level        Safe
109 .SH SEE ALSO
112 \fBdi_init\fR(3DEVINFO), \fBlibdevinfo\fR(3LIB), \fBattributes\fR(5)