// netdma.h
DMA_CHANNEL_FREE_HANDLER DmaChannelFreeHandler;
VOID DmaChannelFreeHandler(
[in] PVOID ProviderChannelContext
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Note The NetDMA interface is not supported
in Windows 8 and later.
The ProviderFreeDmaChannel function frees a DMA channel that the ProviderAllocateDmaChannel function previously allocated.
ProviderChannelContext [in]A pointer that identifies a DMA channel's context area. The DMA provider returned this handle to NetDMA at the location that is specified in the pProviderChannelContext parameter of the ProviderAllocateDmaChannel function.
The NetDMA interface calls a DMA provider driver's ProviderFreeDmaChannel function to free a DMA channel. Before the NetDMA interface calls ProviderFreeDmaChannel, it ensures that there are no outstanding DMA operations on this channel.
After the NetDMA interface calls ProviderFreeDmaChannel, it does not call any ProviderXxx functions for the freed channel.
The NetDMA interface frees all of the allocated DMA channels before it returns from the NetDmaProviderStop function.
NetDMA calls ProviderFreeDmaChannel at IRQL <= DISPATCH_LEVEL.