Compartilhar via


Aborting a DMA Transfer

Note  The NetDMA interface is not supported in Windows 8 and later.

The NetDMA interface can call a NetDMA provider driver's ProviderAbortDma function, if any, to abort all dynamic memory access (DMA) transfers that have been scheduled on a DMA channel.

In ProviderAbortDma, the NetDMA provider should terminate the transfer immediately without completing the transfer of the data that is associated with the current DMA descriptor. If completion status reporting is enabled, the DMA engine writes the NetDmaTransferStatusHalted status in the address that is specified in the CompletionVirtualAddress and CompletionPhysicalAddress members in the NET_DMA_CHANNEL_PARAMETERS structure.

After the abort operation completes, the DMA channel must be ready for the NetDMA interface to call the ProviderStartDma function. The NetDMA interface will not call the ProviderAppendDma function until after the transfer is restarted.