PPUT_DMA_ADAPTER - NtDoc

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

PPUT_DMA_ADAPTER PputDmaAdapter;

VOID PputDmaAdapter(
  [in] PDMA_ADAPTER DmaAdapter
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdm-pput_dma_adapter)

PPUT_DMA_ADAPTER callback function

Description

The PutDmaAdapter routine frees a DMA_ADAPTER structure previously allocated by IoGetDmaAdapter.

Parameters

DmaAdapter [in]

Pointer to the DMA_ADAPTER structure to be released.

Remarks

PutDmaAdapter is not a system routine that can be called directly by name. This routine is callable only by pointer from the address returned in a DMA_OPERATIONS structure. Drivers obtain the address of this routine by calling IoGetDmaAdapter.

PutDmaAdapter frees a DMA adapter object previously allocated by IoGetDmaAdapter. Drivers should call PutDmaAdapter after completing DMA operations and freeing any map registers and common buffer allocated with this adapter object. After PutDmaAdapter returns, the driver can no longer use the DMA adapter object.

A driver must call PutDmaAdapter when it receives a PnP IRP_MN_STOP_DEVICE request.

See also

DMA_ADAPTER

DMA_OPERATIONS

IoGetDmaAdapter