2.16.WD_DMASyncIo()

Purpose

Synchronizes the I/O caches with the DMA buffer, by flushing the data from the I/O caches and updating the CPU caches.

[Note]
This function should be called after performing a DMA transfer (see Remarks below).
Prototype
DWORD WD_DMASyncIo(
    HANDLE hWD,
    WD_DMA *pDMA);
Parameters
NameTypeInput/Output
hWDHANDLEInput
pDMAWD_DMA*Input
Description
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open()[5.2]
pDMA Pointer to a DMA information structure, received from a previous call to WD_DMALock()[2.11]
Return Value

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

Remarks
Example
WD_DMASyncIo(hWD, &dma);