xref: /titanic_44/usr/src/man/man9f/ddi_regs_map_free.9f (revision 6a5408e613dc0b372f722907d6c0b18e99c182dd)
te
Copyright (c) 2004, 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_regs_map_free 9F "18 Nov 2004" "SunOS 5.11" "Kernel Functions for Drivers"
NAME
ddi_regs_map_free - free a previously mapped register address space
SYNOPSIS

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



void ddi_regs_map_free(ddi_acc_handle_t *handle);
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI).

PARAMETERS

handle

Pointer to a data access handle previously allocated by a call to a setup routine such as ddi_regs_map_setup(9F).

DESCRIPTION

ddi_regs_map_free() frees the mapping represented by the data access handle handle. This function is provided for drivers preparing to detach themselves from the system, allowing them to release allocated system resources represented in the handle.

CONTEXT

ddi_regs_map_free() must be called from user or kernel context.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
ArchitecturePCI Local Bus, SBus, ISA
SEE ALSO

attributes(5), ddi_regs_map_setup(9F)

Writing Device Drivers