NDIS_RAISE_IRQL_TO_DISPATCH macro (ndis.h)

The NDIS_RAISE_IRQL_TO_DISPATCH macro raises the current IRQL to DISPATCH_LEVEL on the current processor.

Syntax

void 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 subsequent 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

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Universal
Header ndis.h
IRQL <= DISPATCH_LEVEL
DDI compliance rules Irql_IrqlSetting_Function(ndis)

See also

KeRaiseIrql

NDIS_LOWER_IRQL