WDF_INTERRUPT_CONFIG_INIT function

[Applies to KMDF and UMDF]

The WDF_INTERRUPT_CONFIG_INIT function initializes a WDF_INTERRUPT_CONFIG structure.

Syntax


VOID WDF_INTERRUPT_CONFIG_INIT(
  _Out_     PWDF_INTERRUPT_CONFIG Configuration,
  _In_      PFN_WDF_INTERRUPT_ISR EvtInterruptIsr,
  _In_opt_  PFN_WDF_INTERRUPT_DPC EvtInterruptDpc
);

Parameters

Configuration [out]

A pointer to a WDF_INTERRUPT_CONFIG structure.

EvtInterruptIsr [in]

A pointer to the driver's EvtInterruptIsr callback function.

EvtInterruptDpc [in, optional]

A pointer to the driver's EvtInterruptDpc callback function, or NULL.

Return value

None

Remarks

The WDF_INTERRUPT_CONFIG_INIT function zeros the specified WDF_INTERRUPT_CONFIG structure and sets its Size member to the structure's size. It also sets the structure's ShareVector member to WdfUseDefault and stores the specified callback function pointers. Finally, it sets the ReportInactiveOnPowerDown member of the specified WDF_INTERRUPT_CONFIG structure to WdfDefault.

For more information about handling interrupts in framework-based drivers, see Handling Hardware Interrupts.

Examples

For a code example that uses WDF_INTERRUPT_CONFIG_INIT, see WdfInterruptCreate.

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfinterrupt.h (include Wdf.h)

IRQL

Any level

See also

WDF_INTERRUPT_CONFIG
EvtInterruptDpc
EvtInterruptIsr

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft