WdfInterruptEnable method

[Applies to KMDF and UMDF]

The WdfInterruptEnable method enables a specified device interrupt by calling the driver's EvtInterruptEnable callback function.

Syntax


VOID WdfInterruptEnable(
  [in]  WDFINTERRUPT Interrupt
);

Parameters

Interrupt [in]

A handle to a framework interrupt object.

Return value

None.

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

Remarks

Most framework-based drivers don't need to call WdfInterruptEnable, because the framework calls the driver's EvtInterruptEnable callback function each time the device enters its working (D0) state.

For passive-level interrupt objects, the framework calls WdfInterruptEnable at PASSIVE_LEVEL.

Do not call WdfInterruptEnable from an arbitrary thread context, such as a request handler.

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

Examples

The following code example enables the device interrupt that is associated with a specified interrupt object.


WdfInterruptEnable(Interrupt);

Requirements

Minimum KMDF version

1.0

Minimum UMDF version

2.0

Header

Wdfinterrupt.h (include Wdf.h)

Library

Wdf01000.sys (KMDF);
WUDFx02000.dll (UMDF)

IRQL

PASSIVE_LEVEL

DDI compliance rules

DriverCreate, KmdfIrql, KmdfIrql2

See also

WdfInterruptDisable
EvtInterruptEnable

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft