Flags_Irql rule (ndis)
The Flags_Irql rule specifies that KeGetCurrentIrql must not be called within callback functions that have a dispatch level flag parameter that indicates the current IRQL.
The correct use of the dispatch level flag can help you avoid unnecessary attempts to set the IRQL. For more information about how to use this flag, see Dispatch IRQL Tracking.
How to test
|At compile time|
Run Static Driver Verifier and specify the Flags_Irql 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.
Build date: 2/13/2014