2.12.WD_DMAUnlock()

Purpose

Unlocks a DMA buffer.

Prototype
DWORD WD_DMAUnlock(
    HANDLE hWD,
    WD_DMA *pDMA);
Parameters
NameTypeInput/Output
hWDHANDLEInput
pDmaWD_DMA*
hDmaDWORDInput
pUserAddrPVOIDN/A
pKernelAddrKPTRN/A
dwBytesDWORDN/A
dwOptionsDWORDN/A
dwPagesDWORDN/A
hCardDWORDN/A
PageWD_DMA_PAGE[WD_DMA_PAGES]N/A
Description
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open()[5.2]
pDMAPointer to a DMA information structure:
hDmaDMA buffer handle, received from WD_DMALock()[2.11].
Return Value

Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise[A].

Example
WD_DMAUnlock(hWD, &dma);