WdfDmaEnablerGetMaximumLength function

[Applies to KMDF only]

The WdfDmaEnablerGetMaximumLength method returns the maximum transfer length, for a single DMA transfer, that a device supports.

Syntax

size_t WdfDmaEnablerGetMaximumLength(
  WDFDMAENABLER DmaEnabler
);

Parameters

DmaEnabler

A handle to a DMA enabler object that the driver obtained from a previous call to WdfDmaEnablerCreate.

Return Value

WdfDmaEnablerGetMaximumLength returns the maximum length of a DMA transfer, in bytes. This length is the same value that was specified in a previous call to WdfDmaEnablerCreate.

A bug check occurs if the driver supplies an invalid object handle.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Header wdfdmaenabler.h (include Wdf.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL "<=DISPATCH_LEVEL"
DDI compliance rules DriverCreate, KmdfIrql, KmdfIrql2

See Also

WDF_DMA_ENABLER_CONFIG

WdfDmaEnablerCreate

WdfDmaEnablerGetFragmentLength