Previous Next

KeRaiseIrql

The KeRaiseIrql routine raises the hardware priority to a given IRQL value, thereby masking off interrupts of equivalent or lower IRQL on the current processor.

VOID 
  KeRaiseIrql(
    IN KIRQL  NewIrql,
    OUT PKIRQL  OldIrql
    );

Parameters

NewIrql
Specifies the new IRQL to which the hardware priority is to be raised.
OldIrql
Pointer to the storage for the original (unraised) IRQL value to be used in a subsequent call to KeLowerIrql.

Return Value

None

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

If the new IRQL is less than the current IRQL, a bug check occurs. Otherwise, the current IRQL is set to the specified value.

Callers of this routine can be running at any IRQL. Any caller should restore the original IRQL with KeLowerIrql as soon as possible.

A call to KeLowerIrql is valid if it specifies NewIrql <= CurrentIrql. A call to KeRaiseIrql is valid if the caller specifies NewIrql >= CurrentIrql.

See Also

KeGetCurrentIrql, KeLowerIrql