IrqlKeWaitForMutexObject rule (wdm)
The IrqlKeWaitForMutexObject rule specifies the driver to call the KeWaitForMutexObject routine at the proper IRQL based on the value of the Timeout parameter:
If Timeout points to a zero value, the driver is executing at IRQL = DISPATCH_LEVEL.
If Timeout is NULL, or points to any value other than zero, the driver is executing at IRQL <= APC_LEVEL.
How to test
|At compile time|
Run Static Driver Verifier and specify the IrqlKeWaitForMutexObject 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.