// wdm.h
PFLUSH_DMA_BUFFER PflushDmaBuffer;
NTSTATUS PflushDmaBuffer(
[in] PDMA_ADAPTER DmaAdapter,
[in] PMDL Mdl,
[in] BOOLEAN ReadOperation
)
{...}
View the official Windows Driver Kit DDI reference
No description available.
The callback routine flushes any data remaining in the memory region described by an MDL.
DmaAdapter:
[in]A pointer to a DMA_ADAPTER structure. This structure is the adapter object that represents the driver's bus-master DMA device or system DMA channel. The caller obtained this pointer from a previous call to the IoGetDmaAdapter routine.
Mdl:
[in]A pointer to the MDL that describes the buffer previously passed in the driver's call to MapTransfer.
ReadOperation:
[in]Specifies TRUE if the flush is being performed for a read operation, and FALSE for a write operation. For more information, see the following Remarks section.
Returns STATUS_SUCCESS if the call is successful. Otherwise, returns an appropriate NTSTATUS values error code. For more information, see NTSTATUS Values.
Flushing Cached Data during DMA Operations