Redigera

Dela via


Init_DeRegisterInterrupt rule (ndis)

The Init_DeRegisterInterrupt rule specifies that if NdisMRegisterInterruptEx is called at least once during MPInitilize, NdisMDeregisterInterruptEx should be called at least once in MPHaltEx.

Register of interrupts, which usually happen during initialization, should be undone (deregister) if something goes wrong in the initialization process or during the halting of the miniport.

Driver model: NDIS

How to test

At compile time

Run Static Driver Verifier and specify the Init_DeRegisterInterrupt 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.

Applies to

NdisMDeregisterInterruptEx NdisMRegisterInterruptEx