The KeReleaseSpinLock routine releases a spin lock and restores the original IRQL at which the caller was running.
VOID
KeReleaseSpinLock(
IN PKSPIN_LOCK SpinLock,
IN KIRQL NewIrql
);
None
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
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.