ScsiPortFlushDma - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// srb.h

SCSIPORT_API VOID ScsiPortFlushDma(
  [in] PVOID DeviceExtension
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-srb-scsiportflushdma)

ScsiPortFlushDma function

Description

The ScsiPortFlushDma routine flushes any data cached in the system DMA controller at the end of a transfer or terminates a system DMA transfer.

Note The SCSI port driver and SCSI miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.

Parameters

DeviceExtension [in]

Pointer to the miniport driver's per-HBA storage area.

Return value

None

Remarks

Only miniport drivers of subordinate HBAs that use a system DMA controller call this routine.

ScsiPortFlushDma must be called after a subordinate DMA transfer operation is completed but before the SRB is completed or the next call is made to ScsiPortIoMapTransfer for the current buffer.

ScsiPortFlushDma also must be called after ScsiPortIoMapTransfer to cancel a DMA operation, even if no transfer has occurred and the driver's HwScsiDmaStarted routine has not yet been called.

See also

HwScsiDmaStarted

ScsiPortIoMapTransfer