xref: /illumos-gate/usr/src/man/man9f/csx_FreeHandle.9f (revision c4140c56306ad2a74081dd949618b4f3162dd06b)
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]
CSX_FREEHANDLE 9F "Jul 19, 1996"
NAME
csx_FreeHandle - free access handle
SYNOPSIS
#include <sys/pccard.h>



int32_t csx_FreeHandle(acc_handle_t *handle);
INTERFACE LEVEL
illumos DDI Specific (illumos DDI)
PARAMETERS
handle

The access handle returned from csx_RequestIO(9F), csx_RequestWindow(9F), or csx_DupHandle(9F).

DESCRIPTION
This function frees the handle, handle. If the handle was created by the csx_DupHandle(9F) function, this function will free the storage associated with this handle, but will not modify any resources that the original handle refers to. If the handle was created by a common access setup function, this function will release the resources associated with this handle.
RETURN VALUES
CS_SUCCESS

Successful operation.

CS_UNSUPPORTED_FUNCTION

No PCMCIA hardware installed.

CONTEXT
This function may be called from user or kernel context.
SEE ALSO
csx_DupHandle (9F), csx_RequestIO (9F), csx_RequestWindow (9F)

PC Card95 Standard, PCMCIA/JEIDA