KeAcquireSpinLockRaiseToDpc function (wdm.h)

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

Syntax

KIRQL KeAcquireSpinLockRaiseToDpc(
  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

Requirement Value
Minimum supported client Windows 2000 64-bit
Header wdm.h
IRQL <= DISPATCH_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport), Spinlock(kmdf), SpinLock(storport), SpinLock(wdm), SpinlockDpc(kmdf), SpinLockDpc(storport), SpinLockDpc(wdm), SpinlockRelease(kmdf), SpinLockRelease(storport), SpinlockRelease(wdm), SpinLockSafe(wdm)

See also

KeAcquireInStackQueuedSpinLock

KeAcquireSpinLock

KeInitializeSpinLock