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.

Driver modelNDIS

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:
  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.



Send comments about this topic to Microsoft