IoReleaseCancelSpinLock routine
The IoReleaseCancelSpinLock routine releases the cancel spin lock after the driver has changed the cancelable state of an IRP.
Syntax
VOID IoReleaseCancelSpinLock(
_In_ KIRQL Irql
);
Parameters
- Irql [in]
The IRQL to be restored. The caller obtained this IRQL in the previous call to the IoAcquireCancelSpinLock routine.
Return value
None
Remarks
This routine is a reciprocal to IoAcquireCancelSpinLock.
This routine also releases the cancel spin lock from the driver's Cancel routine.
The holder of the cancel spin lock runs at IRQL = DISPATCH_LEVEL after calling IoAcquireCancelSpinLock. IoReleaseCancelSpinLock restores the original IRQL of the caller.
Requirements
Target platform |
Universal |
Version |
Available starting with Windows 2000. |
Header |
Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h) |
Library |
NtosKrnl.lib |
DLL |
NtosKrnl.exe |
IRQL |
DISPATCH_LEVEL |
DDI compliance rules |
CancelSpinLock, CancelSpinlockRelease, SpinLockSafe, CancelSpinLock(storport), HwStorPortProhibitedDDIs, SpinLockSafe(storport) |
See also