PREAD_DMA_COUNTER - NtDoc

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

PREAD_DMA_COUNTER PreadDmaCounter;

ULONG PreadDmaCounter(
  [in] PDMA_ADAPTER DmaAdapter
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

PREAD_DMA_COUNTER callback function

Description

The ReadDmaCounter routine returns the number of bytes remaining to be transferred during the current subordinate DMA operation.

Parameters

DmaAdapter [in]

Pointer to the adapter object previously returned by IoGetDmaAdapter representing the system DMA controller channel currently in use.

Return value

ReadDmaCounter returns the number of bytes remaining to be transferred in the current DMA operation.

Remarks

ReadDmaCounter 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.

ReadDmaCounter can be called only by drivers of subordinate DMA devices. Usually, the caller is the driver of a subordinate device that uses a system DMA controller's autoinitialize mode.

See also

AllocateCommonBuffer

DMA_ADAPTER

FlushAdapterBuffers

IoGetDmaAdapter

MapTransfer