EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED callback function (wdfdevice.h)

[Applies to KMDF and UMDF]

A driver's EvtDeviceD0EntryPostInterruptsEnabled event callback function performs device-specific operations that are required after the driver has enabled the device's hardware interrupts.

Syntax

EVT_WDF_DEVICE_D0_ENTRY_POST_INTERRUPTS_ENABLED EvtWdfDeviceD0EntryPostInterruptsEnabled;

NTSTATUS EvtWdfDeviceD0EntryPostInterruptsEnabled(
  [in] WDFDEVICE Device,
  [in] WDF_POWER_DEVICE_STATE PreviousState
)
{...}

Parameters

[in] Device

A handle to a framework device object.

[in] PreviousState

A WDF_POWER_DEVICE_STATE-typed enumerator that identifies the previous device power state.

Return value

If the EvtDeviceD0EntryPostInterruptsEnabled callback function encounters no errors, it must return STATUS_SUCCESS or another status value for which NT_SUCCESS(status) equals TRUE. Otherwise, it must return a status value for which NT_SUCCESS(status) equals FALSE.

For more information about this callback function's return values, see Reporting Device Failures.

Remarks

To register an EvtDeviceD0EntryPostInterruptsEnabled callback function, a driver must call WdfDeviceInitSetPnpPowerEventCallbacks.

The EvtDeviceD0EntryPostInterruptsEnabled callback function is called at IRQL = PASSIVE_LEVEL, after the driver's EvtInterruptEnable callback function returns. A driver can provide this function if it must perform device-specific operations after it has enabled an interrupt, if those operations should not be performed at IRQL = DIRQL in the EvtInterruptEnable callback function. You should not make this callback function pageable.

For more information about when the framework calls this callback function, see PnP and Power Management Scenarios.

For more information about handling interrupts, see Handling Hardware Interrupts.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)
IRQL PASSIVE_LEVEL (see Remarks section)

See also

EvtDeviceD0ExitPreInterruptsDisabled