KeRaiseIrql

VOID
    KeRaiseIrql(

        IN KIRQL  NewIrql,
        OUT PIRQL  OldIrql
        );

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

Parameters

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

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

KeLowerIrql