WdfSpinLockRelease function (wdfsync.h)

The WdfSpinLockRelease method releases a specified spin lock.

Syntax

void WdfSpinLockRelease(
  WDFSPINLOCK SpinLock
);

Parameters

SpinLock

A handle to a framework spin-lock object, obtained by a previous call to WdfSpinLockCreate.

Return value

None

Remarks

A bug check occurs if the driver supplies an invalid object handle.

The WdfSpinLockRelease method releases the spin lock that a driver obtained by previously calling WdfSpinLockAcquire. WdfSpinLockRelease also restores the driver's IRQL to the value that it had before the driver called WdfSpinLockAcquire.

For more information about spin locks, see Using Framework Locks.

Requirements

Requirement Value
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfsync.h (include Wdf.h)
Library Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF)
IRQL DISPATCH_LEVEL
DDI compliance rules DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf), ReqSendWhileSpinlock(kmdf), WdfSpinlock(kmdf), WdfSpinlockRelease(kmdf)

See also

WdfSpinLockCreate

WdfSpinLockAcquire

WdfSpinlock rule (KMDF)

WdfSpinLockRelease rule (KMDF)