IoFreeAdapterChannel

VOID
    IoFreeAdapterChannel(

        IN PADAPTER_OBJECT  AdapterObject
        );

IoFreeAdapterChannel releases the system DMA controller when a driver has completed all DMA operations necessary to satisfy the current IRP.

Parameters

AdapterObject
Points to the adapter object representing the DMA controller channel or MCA-type port to be deallocated. This pointer was returned by HalGetAdapter when the driver initialized.

Comments

IoFreeAdapterChannel releases the system DMA controller previously allocated with a call to IoAllocateAdapterChannel, after the calling driver has transferred all the data.

If map registers were allocated by the call to IoAllocateAdapterChannel, they are deallocated when the driver calls IoFreeAdapterChannel.

Callers of IoFreeAdapterChannel must be running at IRQL DISPATCH_LEVEL.

See Also

HalGetAdapter, IoAllocateAdapterChannel, IoFlushAdapterBuffers, IoFreeMapRegisters, IoMapTransfer