IoReleaseVpbSpinLock routine

The IoReleaseVpbSpinLock routine releases the Volume Parameter Block (VPB) spin lock.

Syntax


VOID IoReleaseVpbSpinLock(
  _In_ KIRQL Irql
);

Parameters

Irql [in]

Saved IRQL value returned by IoAcquireVpbSpinLock when the VPB spin lock was acquired.

Return value

None

Remarks

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.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

DISPATCH_LEVEL

See also

IoAcquireVpbSpinLock

 

 

Send comments about this topic to Microsoft

Show: