User`s manual

B.3 WDC High Level API
271
B.3.40 WDC_DMABufUnlock()
PURPOSE
Unlocks and frees the memory allocated for a DMA buffer by a previous call to
WDC_DMAContigBufLock()
[B.3.38] or
WDC_DMASGBufLock()
[B.3.39].
PROTOTYPE
DWORD DLLCALLCONV WDC_DMABufUnlock(WD_DMA
*
pDma) ;
PARAMETERS
Name Type Input/Output
pDma WD_DMA* Input
DESCRIPTION
Name Description
pDma Pointer to a DMA information structure [B.5.14], received
from a previous call to
WDC_DMAContigBufLock()
[B.3.38]
(for a Contiguous DMA buffer) or
WDC_DMASGBufLock()
[B.3.39] (for a Scatter/Gather
DMA buffer) –
*ppDma
returned by these functions
RETURN VALUE
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code
otherwise [
B.9].
REMARKS
This function is currently only supported from the user mode.