KeReleaseSpinLockFromDpcLevel

VOID
    KeReleaseSpinLockFromDpcLevel(

        IN PKSPIN_LOCK  SpinLock
        );

KeReleaseSpinLockFromDpcLevel releases an executive spin lock.

Parameters

SpinLock
Points to an executive spin lock for which the caller provides the storage.

Comments

Drivers call KeReleaseSpinLockFromDpcLevel to release a spin lock acquired by calling KeAcquireSpinLockAtDpcLevel.

It is an error to call KeReleaseSpinLockFromDpcLevel if the given spin lock was acquired by calling KeAcquireSpinLock because the caller’s original IRQL is not restored, which can cause deadlocks or fatal page faults.

Callers of KeReleaseSpinLockAtDpcLevel must be running at IRQL DISPATCH_LEVEL.

See Also

KeAcquireSpinLock, KeAcquireSpinLockAtDpcLevel, KeReleaseSpinLock