Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / ddi_no_info.9f
blob1315cf73b98cf4545b708f9e84efe73a8238f8ef
1 '\" te
2 .\" Copyright (c) 2002, 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 DDI_NO_INFO 9F "Jul 9, 2002"
7 .SH NAME
8 ddi_no_info \- stub for getinfo(9E)
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/ddi.h>
13 #include <sys/sunddi.h>
17 \fBint\fR \fBddi_no_info\fR(\fBdev_info_t *\fR\fIdip\fR, \fBddi_info_cmd_t\fR \fIinfocmd\fR, \fBvoid *\fR\fIarg\fR,
18     \fBvoid **\fR\fIresult\fR
19 .fi
21 .SH INTERFACE LEVEL
22 .sp
23 .LP
24 Solaris DDI specific (Solaris DDI)
25 .SH PARAMETERS
26 .sp
27 .ne 2
28 .na
29 \fBdev_info_t *\fIdip\fR\fR
30 .ad
31 .RS 26n
32 Pointer to \fBdev_info\fR structure.
33 .RE
35 .sp
36 .ne 2
37 .na
38 \fBddi_info_cmd_t \fIinfocmd\fR\fR
39 .ad
40 .RS 26n
41 Command argument. Valid command values are: \fBDDI_INFO_DEVT2DEVINFO\fR and
42 \fBDDI_INFO_DEVT2INSTANCE\fR.
43 .RE
45 .sp
46 .ne 2
47 .na
48 \fBvoid *\fIarg\fR\fR
49 .ad
50 .RS 26n
51 Command-specific argument.
52 .RE
54 .sp
55 .ne 2
56 .na
57 \fBvoid **\fIresult\fR\fR
58 .ad
59 .RS 26n
60 Pointer to where the requested information is stored.
61 .RE
63 .SH DESCRIPTION
64 .sp
65 .LP
66 The \fBddi_no_info()\fR function always returns \fBDDI_FAILURE\fR. It is
67 provided as a convenience routine for drivers not providing a \fBcb_ops\fR(9S)
68 or for network drivers only providing DLPI-2 services. Such drivers can use
69 \fBddi_no_info()\fR in the \fBdevo_getinfo\fR entry point (see
70 \fBgetinfo\fR(9E)) of the \fBdev_ops\fR(9S) structure.
71 .SH RETURN VALUES
72 .sp
73 .LP
74 The \fBddi_no_info()\fR function always returns \fBDDI_FAILURE\fR.
75 .SH SEE ALSO
76 .sp
77 .LP
78 \fBgetinfo\fR(9E), \fBqassociate\fR(9F), \fBcb_ops\fR(9S), \fBdev_ops\fR(9S)