Bewerken

Delen via


PFLUSH_DMA_BUFFER callback function (wdm.h)

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

Syntax

PFLUSH_DMA_BUFFER PflushDmaBuffer;

NTSTATUS PflushDmaBuffer(
  [in] PDMA_ADAPTER DmaAdapter,
  [in] PMDL Mdl,
  [in] BOOLEAN ReadOperation
)
{...}

Parameters

[in] DmaAdapter

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.

[in] Mdl

A pointer to the MDL that describes the buffer previously passed in the driver's call to MapTransfer.

[in] ReadOperation

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.

Requirements

Requirement Value
Header wdm.h (include Wdm.h)

See also

Flushing Cached Data during DMA Operations