// ntifs.h
VOID IoReleaseVpbSpinLock(
[in] KIRQL Irql
);
View the official Windows Driver Kit DDI referenceNo description available.
The IoReleaseVpbSpinLock routine releases the Volume Parameter Block (VPB) spin lock.
Irql [in]Saved IRQL value returned by IoAcquireVpbSpinLock when the VPB spin lock was acquired.
This routine is the reciprocal to IoAcquireVpbSpinLock. Every successful call to IoAcquireVpbSpinLock must be matched by a subsequent call to IoReleaseVpbSpinLock.
Before using IoAcquireVpbSpinLock and IoReleaseVpbSpinLock, driver writers are strongly encouraged to study the way these routines are used in the FASTFAT sample.
The holder of the VPB spin lock executes at IRQL DISPATCH_LEVEL after calling IoAcquireVpbSpinLock. IoReleaseVpbSpinLock restores the caller's original IRQL.