WdfSpinLockRelease method
[Applies to KMDF and UMDF]
The WdfSpinLockRelease method releases a specified spin lock.
Syntax
VOID WdfSpinLockRelease(
_In_ WDFSPINLOCK SpinLock
);
Parameters
- SpinLock [in]
A handle to a framework spin-lock object, obtained by a previous call to WdfSpinLockCreate.
Return value
None.
A bug check occurs if the driver supplies an invalid object handle.
Remarks
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 Synchronization Techniques for Framework-Based Drivers.
Examples
For a code example that uses WdfSpinLockRelease, see WdfSpinLockAcquire.
Requirements
Target platform |
Universal |
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, KmdfIrql, KmdfIrql2, ReqSendWhileSpinlock, WdfSpinlock, WdfSpinlockRelease |
See also