IoReleaseCancelSpinLock function (wdm.h)

The IoReleaseCancelSpinLock routine releases the cancel spin lock after the driver has changed the cancelable state of an IRP.

Syntax

void IoReleaseCancelSpinLock(
  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

Requirement Value
Minimum supported client Windows 2000
Header wdm.h
IRQL DISPATCH_LEVEL
DDI compliance rules CancelSpinLock(storport), CancelSpinLock(wdm), CancelSpinlockRelease(wdm), HwStorPortProhibitedDDIs(storport), SpinLockSafe(storport), SpinLockSafe(wdm)

See also

IoAcquireCancelSpinLock

IoSetCancelRoutine