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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for