KeAcquireSpinLockRaiseToDpc
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


Send feedback on this topic
Built on November 19, 2009
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View