xref: /titanic_52/usr/src/man/man9f/ddi_driver_name.9f (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
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]
DDI_DRIVER_NAME 9F "Dec 2, 1998"
NAME
ddi_driver_name - return normalized driver name
SYNOPSIS

#include <sys/ddi.h>
#include <sys/sunddi.h>

const char *ddi_driver_name(dev_info_t *devi);
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI).

PARAMETERS
dip

A pointer to the device's dev_info structure.

DESCRIPTION

ddi_driver_name() 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.

RETURN VALUES

ddi_driver_name() returns the actual name of the driver bound to a device.

CONTEXT

ddi_driver_name() can be called from kernel, or interrupt context.

SEE ALSO

ddi_get_name(9F)

Writing Device Drivers

WARNINGS

The name returned by ddi_driver_name() is read-only.