Windows Driver Kit: Kernel-Mode Driver Architecture
KeAcquireSpinLockRaiseToDpc
The KeAcquireSpinLockRaiseToDpc routine is a faster version of the KeAcquireSpinLock routine.
KIRQL
KeAcquireSpinLockRaiseToDpc(
IN PKSPIN_LOCK SpinLock
);
Parameters
- SpinLock
- Specifies the spin lock to acquire. The spin lock must already have been initialized by KeInitializeSpinLock.
Return Value
KeAcquireSpinLockRaiseToDpc returns the current IRQL at the time the routine is called. This value is passed to KeReleaseSpinLock when the spin lock is released.
Comments
The effect of this routine is identical to that of KeAcquireSpinLock. In particular, the acquired spin lock is released by KeReleaseSpinLock. For more information, see the reference page for KeAcquireSpinLock.
Drivers can try to acquire the spin lock without blocking by using KeTryToAcquireSpinLockAtDpcLevel.
For more information about spin locks, see Spin Locks.
Requirements
Versions: Available in the 64-bit versions of Windows 2000 and in later 64-bit versions of Windows. This routine is not available in 32-bit versions of Windows.
IRQL: <=DISPATCH_LEVEL
Headers: Declared in Wdm.h. Include Wdm.h, Ntddk.h, or Ntifs.h.
See Also
KeAcquireInStackQueuedSpinLock, KeAcquireSpinLock, KeInitializeSpinLock