EvtDeviceReportedMissing
EvtDeviceUsageNotificationEx
EvtDeviceWdmIrpDispatch
EvtDeviceWdmPostPoFxRegisterDevice
EvtDeviceWdmPrePoFxUnregisterDevice
WDF_DEVICE_INTERFACE_PROPERTY_DATA
WDF_DEVICE_INTERFACE_PROPERTY_DATA_INIT
WDF_DEVICE_PROPERTY_DATA
WDF_DEVICE_PROPERTY_DATA_INIT
WDF_DISPATCH_IRP_TO_IO_QUEUE_FLAGS
WDF_EVENT_TYPE
WDF_IO_TYPE_CONFIG
WDF_IO_TYPE_CONFIG_INIT
WDF_POWER_FRAMEWORK_SETTINGS
WDF_POWER_FRAMEWORK_SETTINGS_INIT
WDF_POWER_POLICY_IDLE_TIMEOUT_TYPE
WDF_RELEASE_HARDWARE_ORDER_ON_FAILURE
WDF_REMOVE_LOCK_OPTIONS
WDF_REMOVE_LOCK_OPTIONS_FLAGS
WDF_REMOVE_LOCK_OPTIONS_INIT
WdfDeviceAllocAndQueryInterfaceProperty method
WdfDeviceAllocAndQueryPropertyEx method
WdfDeviceAssignInterfaceProperty method
WdfDeviceAssignProperty method
WdfDeviceConfigureWdmIrpDispatchCallback method
WdfDeviceGetDeviceStackIoType method
WdfDeviceGetHardwareRegisterMappedAddress
WdfDeviceInitSetIoTypeEx method
WdfDeviceInitSetReleaseHardwareOrderOnFailure method
WdfDeviceInitSetRemoveLockOptions method
WdfDeviceMapIoSpace
WdfDeviceOpenDevicemapKey method
WdfDevicePostEvent
WdfDeviceQueryInterfaceProperty method
WdfDeviceQueryPropertyEx method
WdfDeviceReadFromHardware
WdfDeviceResumeIdleWithTag method
WdfDeviceStopIdleWithTag method
WdfDeviceUnmapIoSpace
WdfDeviceWdmAssignPowerFrameworkSettings method
WdfDeviceWdmDispatchIrp method
WdfDeviceWdmDispatchIrpToIoQueue method
WdfDeviceWriteToHardware
WdfFdoInitAllocAndQueryPropertyEx method
WdfFdoInitQueryPropertyEx method
展开 最小化

EvtDeviceDisarmWakeFromS0

A driver's EvtDeviceDisarmWakeFromS0 event callback function disarms (that is, disables) a device's ability to trigger a wake signal while in a low-power device state, if the system remains in the system working state (S0).

语法

EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0 EvtDeviceDisarmWakeFromS0;

VOID EvtDeviceDisarmWakeFromS0(
  __in  WDFDEVICE Device
)
{ ... }

参数

Device [in]

A handle to a framework device object.

返回值

None

评论

To register an EvtDeviceDisarmWakeFromS0 callback function, a driver must call WdfDeviceInitSetPowerPolicyEventCallbacks. The driver must also set IdleCanWakeFromS0 in the IdleCaps member of its WDF_DEVICE_POWER_POLICY_IDLE_SETTINGS structure.

If the driver has registered an EvtDeviceDisarmWakeFromS0 callback function, the framework calls it after the bus driver determines that an event has awakened the device, and after the bus driver subsequently completes the wait/wake IRP. Before calling the driver's EvtDeviceDisarmWakeFromS0EvtDeviceDisarmWakeFromS0 callback function, the framework calls the driver's EvtDeviceD0Entry, EvtInterruptEnable, and EvtDeviceWakeFromS0Triggered callback functions.

The EvtDeviceDisarmWakeFromS0 callback function must perform any hardware operations that are needed to disable the device's ability to trigger a wake signal after the power has been lowered.

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

For more information about this callback function, see Supporting Idle Power-Down.

The EvtDeviceDisarmWakeFromS0 callback function is called at IRQL = PASSIVE_LEVEL. You should not make this callback function pageable.

示例

The function type is declared in Wdfdevice.h, as follows.

typedef VOID
 (EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0)(
    IN WDFDEVICE Device
    );

To define an EvtDeviceDisarmWakeFromS0 callback function that is named MyDeviceDisarmWakeFromS0, you must first provide a function declaration that SDV and other verification tools require, as follows:

EVT_WDF_DEVICE_DISARM_WAKE_FROM_S0  MyDeviceDisarmWakeFromS0;

Then, implement your callback function as follows:

VOID
 MyDeviceDisarmWakeFromS0 (
    IN WDFDEVICE  Device
    )
  {...}

要求

版本

Supported by version 1.0 and later versions of KMDF.

标头

Wdfdevice.h (包括Wdf.h)

IRQL

PASSIVE_LEVEL (see Remarks section)

另请参见

EvtDeviceArmWakeFromS0
EvtDeviceDisarmWakeFromSx

 

 

社区附加资源

添加
显示:
© 2015 Microsoft