Irql_Filter_Driver_Function rule (ndis)

The Irql_Filter_Driver_Function rule specifies that the NDIS functions for filter drivers must be called at correct IRQL levels.

The NDIS functions for filter drivers include the following:

NdisFRegisterFilterDriver NdisFDeregisterFilterDriver NdisFSetAttributes NdisFRestartFilter NdisFRestartComplete NdisFPauseComplete NdisFSendNetBufferLists NdisFReturnNetBufferLists NdisFSendNetBufferListsComplete NdisFCancelSendNetBufferLists NdisFIndicateReceiveNetBufferLists NdisFNetPnPEvent NdisFDevicePnPEventNotify NdisEnumerateFilterModules

Driver model NDIS

How to test

At compile time

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

NdisEnumerateFilterModules NdisFCancelSendNetBufferLists NdisFDeregisterFilterDriver NdisFDevicePnPEventNotify NdisFIndicateReceiveNetBufferLists NdisFNetPnPEvent NdisFPauseComplete NdisFRegisterFilterDriver NdisFRestartComplete NdisFRestartFilter NdisFReturnNetBufferLists NdisFSendNetBufferLists NdisFSendNetBufferListsComplete NdisFSetAttributes