PFLUSH_DMA_BUFFER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdm-pflush_dma_buffer)

Description

The callback routine flushes any data remaining in the memory region described by an MDL.

Parameters

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.

Return value

Returns STATUS_SUCCESS if the call is successful. Otherwise, returns an appropriate NTSTATUS values error code. For more information, see NTSTATUS Values.

Remarks

See also

Flushing Cached Data during DMA Operations