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
展开 最小化

EvtDeviceWakeFromSxTriggered

A driver's EvtDeviceWakeFromSxTriggered event callback function informs the driver that its device, which had previously entered a low-power device state because system power was reduced, might have triggered a wake signal.

语法

EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED EvtDeviceWakeFromSxTriggered;

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

参数

Device [in]

A handle to a framework device object.

返回值

None

评论

To register an EvtDeviceWakeFromSxTriggered callback function, a driver must call WdfDeviceInitSetPowerPolicyEventCallbacks.

If the driver has registered this callback, the framework calls it after calling the driver's EvtDeviceD0Entry callback function and before calling the driver's EvtDeviceDisarmWakeFromSx callback function.

System hardware (BIOSes, motherboards, bus adapters) can sometimes drop a wake signal before the bus driver detects it, even though the signal wakes up the system. In such cases, the driver's EvtDeviceWakeFromSxTriggered callback function will not be called even though the driver's device triggered a wake signal.

Some buses combine wake signals from several children. If your device is connected to one of these buses, the callback function might have to determine if the current device triggered the wake-up signal. If your device provides a hardware latch that saves the device's triggered state, it is best to check that state in the driver's EvtDeviceDisarmWakeFromSx callback function, because that callback is always called after the device wakes up, even if the wake signal was dropped.

For more information about this callback function, see Supporting System Wake-Up.

示例

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

typedef VOID
 (EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED)(
    IN WDFDEVICE  Device
    );

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

EVT_WDF_DEVICE_WAKE_FROM_SX_TRIGGERED  MyDeviceWakeFromSxTriggered;

Then, implement your callback function as follows:

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

要求

版本

Supported by version 1.0 and later versions of KMDF.

标头

Wdfdevice.h (包括Wdf.h)

IRQL

PASSIVE_LEVEL

另请参见

EvtDeviceArmWakeFromSx
EvtDeviceDisarmWakeFromSx
EvtDeviceWakeFromS0Triggered

 

 

社区附加资源

添加
显示:
© 2015 Microsoft