FailD0EntryIoTargetState rule (kmdf)

The FailD0EntryIoTargetState rule specifies that an I/O target for a USB continuous reader started within the EvtDeviceD0Entry will get stopped appropriately from the same callback if the EvtDeviceD0Entry fails.

When EvtDeviceD0Entry callback function fails, the framework doesn’t execute the driver’s EvtDeviceD0Exit callback function.

Driver model: KMDF

How to test

At compile time

Run Static Driver Verifier and specify the FailD0EntryIoTargetState rule.

Use the following steps to run an analysis of your code:
  1. Prepare your code (use role type declarations).
  2. Run Static Driver Verifier.
  3. View and analyze the results.

For more information, see Using Static Driver Verifier to Find Defects in Drivers.

Applies to

WdfIoTargetStart WdfIoTargetStop WdfUsbTargetPipeConfigContinuousReader WdfUsbTargetPipeGetIoTarget