Export (0) Print
Expand All
Expand Minimize

KeAcquireSpinLockRaiseToDpc routine

The KeAcquireSpinLockRaiseToDpc routine is a faster version of the KeAcquireSpinLock routine.

Syntax


KIRQL KeAcquireSpinLockRaiseToDpc(
  _Inout_  PKSPIN_LOCK SpinLock
);

Parameters

SpinLock [in, out]

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.

Remarks

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

Version

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.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

SpinLock, SpinLockDpc, SpinlockRelease, Spinlock(kmdf), SpinlockDpc(kmdf), SpinlockRelease(kmdf), HwStorPortProhibitedDDIs, SpinLock(storport), SpinLockDpc(storport), SpinLockRelease(storport)

See also

KeAcquireInStackQueuedSpinLock
KeAcquireSpinLock
KeInitializeSpinLock

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft