Previous Next

KeReleaseSpinLock

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
    );

Parameters

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

Return Value

None

Headers

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

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