Expand Minimize

KeReleaseSpinLockForDpc routine

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

Syntax


VOID KeReleaseSpinLockForDpc(
  _Inout_  PKSPIN_LOCK SpinLock,
  _In_     KIRQL OldIrql
);

Parameters

SpinLock [in, out]

Pointer to the spin lock that KeAcquireSpinLockForDpc acquired.

OldIrql [in]

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

Version

Available in Windows Vista and later versions of Windows.

Header

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

Library

Ntoskrnl.lib

IRQL

See Remarks section.

DDI compliance rules

HwStorPortProhibitedDDIs

See also

KeAcquireSpinLockForDpc

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.