KeReleaseSpinLock

VOID
    KeReleaseSpinLock(

        IN PKSPIN_LOCK  SpinLock,
        IN KIRQL  NewIrql
        );

KeReleaseSpinLock releases a spin lock and restores the original IRQL at which the caller was running.

Parameters

SpinLock
Points to a spin lock for which the caller provides the storage.
NewIrql
Specifies the IRQL value saved from the preceding call to KeAcquireSpinLock.

Comments

This call is a reciprocal to KeAcquireSpinLock. The input NewIrql value must be the OldIrql returned by KeAcquireSpinLock.

Callers of this routine are running at IRQL DISPATCH_LEVEL. On return from KeReleaseSpinLock, IRQL is restored to the NewIrql value.

See Also

KeAcquireSpinLock, KeInitializeSpinLock