NDIS_RAISE_IRQL_TO_DISPATCH macro

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(
   PKIRQL _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

Target platform

Universal

Version

Supported in NDIS 6.0 and later.

Header

Ndis.h (include Ndis.h)

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

Irql_IrqlSetting_Function

See also

KeRaiseIrql
NDIS_LOWER_IRQL

 

 

Send comments about this topic to Microsoft

Show: