usbdUnmapMemory

Purpose

Unmaps memory.

Syntax

#include <usbdi.h>
USBstatus usbdUnmapMemory(handle, hmap)
USBhandle handle;
USBhandle hmap;

Parameter

Item Description
handle Handle of open USB logical device that is returned by the USBD_OPEN_DEVICE fp_ioctl.
hmap Map handles returned from the usbdMapMemory function.

Description

The USB client driver uses this function to unmap previously mapped memory. All I/O referencing the memory block must be completed before this function is called. This function can be called from process environment only.

Execution Environment

This function might be called from the process environment only.

Return Values

Value Description
USBD_SUCCESS Success
All others Failure