IoReleaseCancelSpinLock

VOID
IoReleaseCancelSpinLock(

IN KIRQL Irql
);

IoReleaseCancelSpinLock releases the cancel spin lock after the driver has changed the cancelable state of an IRP. This routine also releases the cancel spin lock from the driver’s Cancel routine.

Parameters

Irql

Points to the IRQL returned by IoAcquireCancelSpinLock.

Comments

This routine is a reciprocal to IoAcquireCancelSpinLock.

The holder of the cancel spin lock executes at DISPATCH_LEVEL IRQL after calling IoAcquireCancelSpinLock. IoReleaseCancelSpinLock restores the original IRQL of its caller.

Callers of IoReleaseCancelSpinLock must be running at IRQL DISPATCH_LEVEL.

See Also

IoAcquireCancelSpinLock, IoSetCancelRoutine