ReqCompletionRoutine rule (kmdf)
The ReqCompletionRoutine rule specifies that a completion routine must be set before a request is sent to an I/O target.
If a request is not sent synchronously, or is not sent as send and forget, (specified by the WDF_REQUEST_SEND_OPTION_SEND_AND_FORGET flag), the driver should set a completion routine so that the I/O target can notify the driver when the request is completed.
How to test
|At compile time|
Run Static Driver Verifier and specify the ReqCompletionRoutine rule.Use the following steps to run an analysis of your code:
For more information, see Using Static Driver Verifier to Find Defects in Drivers.