KeReleaseSpinLockForDpc function (wdm.h)

The KeReleaseSpinLockForDpc routine releases a spin lock that was acquired by calling KeAcquireSpinLockForDpc.

Syntax

void KeReleaseSpinLockForDpc(
  [in, out] PKSPIN_LOCK SpinLock,
  [in]      KIRQL       OldIrql
);

Parameters

[in, out] SpinLock

Pointer to the spin lock that KeAcquireSpinLockForDpc acquired.

[in] OldIrql

Specifies the IRQL that was current when the spin lock was acquired. Specify the value returned by KeAcquireSpinLockForDpc.

Return value

None

Remarks

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.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL See Remarks section.
DDI compliance rules HwStorPortProhibitedDDIs(storport)

See also

KeAcquireSpinLockForDpc