Bewerken

Delen via


WDF_DMA_ENABLER_CONFIG_INIT function (wdfdmaenabler.h)

[Applies to KMDF only]

The WDF_DMA_ENABLER_CONFIG_INIT function initializes a driver's WDF_DMA_ENABLER_CONFIG structure.

Syntax

void WDF_DMA_ENABLER_CONFIG_INIT(
  [out] PWDF_DMA_ENABLER_CONFIG Config,
  [in]  WDF_DMA_PROFILE         Profile,
  [in]  size_t                  MaximumLength
);

Parameters

[out] Config

A pointer to a driver-allocated WDF_DMA_ENABLER_CONFIG structure.

[in] Profile

A value for the Profile member of the WDF_DMA_ENABLER_CONFIG structure.

[in] MaximumLength

A value for the MaximumLength member of the WDF_DMA_ENABLER_CONFIG structure.

Return value

None

Remarks

Drivers must call the WDF_DMA_ENABLER_CONFIG_INIT function before calling WdfDmaEnablerCreate.

Examples

For a code example that uses WDF_DMA_ENABLER_CONFIG_INIT, see WdfDmaEnablerCreate.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Header wdfdmaenabler.h (include Wdf.h)
IRQL PASSIVE_LEVEL

See also

WDF_DMA_ENABLER_CONFIG

WdfDmaEnablerCreate