ReqSendFail rule (kmdf)
The ReqSendFail rule specifies that a driver must set the correct completion status in cases in which the WdfRequestSend method might fail.
WdfRequestSend can return FALSE if it fails to send the request, even if the WDF_REQUEST_SEND_OPTION_SEND_AND_FORGET flag is set in the driver's request options. In such a case, the driver should complete the request with an appropriate completion status, by calling WdfRequestComplete, WdfRequestCompleteWithInformation, or WdfRequestCompleteWithPriorityBoost, or by calling WdfObjectDelete.
Driver model: KMDF
How to test
At compile time |
---|
Run Static Driver Verifier and specify the ReqSendFail 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. |
Applies to
WdfObjectDelete WdfRequestComplete WdfRequestCompleteWithInformation WdfRequestCompleteWithPriorityBoost WdfRequestReuse WdfRequestSend