Expand Minimize
This topic has not yet been rated - Rate this topic

KeReleaseSpinLockFromDpcLevel routine

The KeReleaseSpinLockFromDpcLevel routine releases an executive spin lock without changing the IRQL.

Syntax


VOID KeReleaseSpinLockFromDpcLevel(
  _Inout_  PKSPIN_LOCK SpinLock
);

Parameters

SpinLock [in, out]

Pointer to an executive spin lock for which the caller provides the storage.

Return value

None

Remarks

Drivers call KeReleaseSpinLockFromDpcLevel to release a spin lock acquired by calling KeAcquireSpinLockAtDpcLevel.

It is an error to call KeReleaseSpinLockFromDpcLevel if the specified spin lock was acquired by calling KeAcquireSpinLock because the caller's original IRQL is not restored, which can cause deadlocks or fatal page faults.

For more information about spin locks, see Spin Locks.

Requirements

Version

Available starting with Windows 2000.

Header

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

Library

Contained in Ntoskrnl.lib.

IRQL

DISPATCH_LEVEL

DDI compliance rules

HwStorPortProhibitedDDIs, IrqlDispatch, SpinLockSafe

See also

KeAcquireSpinLock
KeAcquireSpinLockAtDpcLevel
KeReleaseSpinLock

 

 

Send comments about this topic to Microsoft

Build date: 5/2/2013

© 2013 Microsoft. All rights reserved.