xref: /titanic_51/usr/src/man/man9f/ddi_binding_name.9f (revision d583b39bfb4e2571d3e41097c5c357ffe353ad45)
te
Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
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_BINDING_NAME 9F "May 3, 1996"
NAME
ddi_binding_name, ddi_get_name - return driver binding name
SYNOPSIS

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



char *ddi_binding_name(dev_info_t *dip);

char *ddi_get_name(dev_info_t *dip);
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI).

PARAMETERS
dip

A pointer to the device's dev_info structure.

DESCRIPTION

ddi_binding_name() and ddi_get_name() return the driver binding name. This is the name used to select a driver for the device. This name is typically derived from the device name property or the device compatible property. The name returned may be a driver alias or the driver name.

RETURN VALUES

ddi_binding_name() and ddi_get_name() return the name used to bind a driver to a device.

CONTEXT

ddi_binding_name() and ddi_get_name() can be called from user, kernel, or interrupt context.

SEE ALSO

ddi_node_name(9F)

Writing Device Drivers

WARNINGS

The name returned by ddi_binding_name() and ddi_get_name() is read-only.