// wdm.h
VOID KeReleaseSpinLockForDpc(
[in, out] PKSPIN_LOCK SpinLock,
[in] KIRQL OldIrql
);
View the official Windows Driver Kit DDI referenceNo description available.
The KeReleaseSpinLockForDpc routine releases a spin lock that was acquired by calling KeAcquireSpinLockForDpc.
SpinLock [in, out]Pointer to the spin lock that KeAcquireSpinLockForDpc acquired.
OldIrql [in]Specifies the IRQL that was current when the spin lock was acquired. Specify the value returned by KeAcquireSpinLockForDpc.
For more information about spin locks, see Spin Locks.
If OldIrql = PASSIVE_LEVEL, KeReleaseSpinLockForDpc lowers the current IRQL to PASSIVE_LEVEL. If OldIrql = DISPATCH_LEVEL, KeReleaseSpinLockForDpc does not change the current IRQL.