Merge commit '9276b3991ba20d5a5660887ba81b0bc7bed25a0c'
[unleashed.git] / share / man / man9f / ddi_driver_name.9f
blobbd7d9f7464e37fb999b71af79ed85868185ef1e0
1 '\" te
2 .\" Copyright (c) 1998, Sun Microsystems, Inc.
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_DRIVER_NAME 9F "Dec 2, 1998"
7 .SH NAME
8 ddi_driver_name \- return normalized driver name
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/ddi.h>
13 #include <sys/sunddi.h>
15 \fBconst char *\fR\fBddi_driver_name\fR(\fBdev_info_t *\fR\fIdevi\fR);
16 .fi
18 .SH INTERFACE LEVEL
19 .sp
20 .LP
21 Solaris DDI specific (Solaris DDI).
22 .SH PARAMETERS
23 .sp
24 .ne 2
25 .na
26 \fB\fBdip\fR \fR
27 .ad
28 .RS 8n
29 A pointer to the device's  \fBdev_info\fR structure.
30 .RE
32 .SH DESCRIPTION
33 .sp
34 .LP
35 \fBddi_driver_name()\fR returns the normalized driver name. This name is
36 typically derived from the device name property or the device compatible
37 property. If this name is a driver alias, the corresponding driver name is
38 returned.
39 .SH RETURN VALUES
40 .sp
41 .LP
42 \fBddi_driver_name()\fR returns the actual name  of the driver bound to a
43 device.
44 .SH CONTEXT
45 .sp
46 .LP
47 \fBddi_driver_name()\fR can  be  called  from kernel, or interrupt context.
48 .SH SEE ALSO
49 .sp
50 .LP
51 \fBddi_get_name\fR(9F)
52 .sp
53 .LP
54 \fIWriting Device Drivers\fR
55 .SH WARNINGS
56 .sp
57 .LP
58 The name returned by  \fBddi_driver_name()\fR is read-only.