'\" te .\" Copyright (c) 1998, Sun Microsystems, Inc. .\" 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. .\" 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. .\" 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] .TH DDI_DRIVER_NAME 9F "Dec 2, 1998" .SH NAME ddi_driver_name \- return normalized driver name .SH SYNOPSIS .nf #include #include \fBconst char *\fR\fBddi_driver_name\fR(\fBdev_info_t *\fR\fIdevi\fR); .fi .SH INTERFACE LEVEL illumos DDI specific (illumos DDI). .SH PARAMETERS .ne 2 .na \fB\fBdip\fR \fR .ad .RS 8n A pointer to the device's \fBdev_info\fR structure. .RE .SH DESCRIPTION \fBddi_driver_name()\fR returns the normalized driver name. This name is typically derived from the device name property or the device compatible property. If this name is a driver alias, the corresponding driver name is returned. .SH RETURN VALUES \fBddi_driver_name()\fR returns the actual name of the driver bound to a device. .SH CONTEXT \fBddi_driver_name()\fR can be called from kernel, or interrupt context. .SH SEE ALSO \fBddi_get_name\fR(9F) .sp .LP \fIWriting Device Drivers\fR .SH WARNINGS The name returned by \fBddi_driver_name()\fR is read-only.