Partager via


NDIS_RAISE_IRQL_TO_DISPATCH (Compact 7)

3/12/2014

This macro raises the current IRQL to DISPATCH_LEVEL on the current processor.

Syntax

NDIS_RAISE_IRQL_TO_DISPATCH(_pIrql_)

Parameters

  • _pIrql_
    A pointer to a KIRQL-type variable where NDIS_RAISE_IRQL_TO_DISPATCH stores the original (that is, unraised) IRQL value. You should use this original IRQL value in a later call to the NDIS_LOWER_IRQL macro.

Return Value

None

Remarks

NDIS network drivers should use the NDIS_RAISE_IRQL_TO_DISPATCH macro to raise the current IRQL.

If the current IRQL is greater than DISPATCH_LEVEL, a bugcheck occurs. Otherwise, the macro sets the current IRQL to DISPATCH_LEVEL.

NDIS_RAISE_IRQL_TO_DISPATCH is an NDIS wrapper for the KeRaiseIrql routine.

The caller should call the NDIS_LOWER_IRQL macro to restore the original IRQL as soon as possible.

Requirements

Header

ndis.h

See Also

Reference

NDIS Interrupt and Synchronization Macros
NDIS_LOWER_IRQL