CcUnpinData routine

The CcUnpinData routine releases cached file data that was mapped or pinned by an earlier call to CcMapData, CcPinRead, or CcPreparePinWrite.

Syntax


VOID CcUnpinData(
  _In_ PVOID Bcb
);

Parameters

Bcb [in]

Pointer to a buffer control block (BCB) for the data to be released.

Return value

None

Remarks

CcUnpinData frees the BCB and performs any other necessary cleanup.

Every successful call to CcMapData, CcPinRead, or CcPreparePinWrite must be matched by a subsequent call to CcUnpinData.

BCBs that have been modified by CcSetBcbOwnerPointer cannot be unpinned by calling CcUnpinData. CcUnpinDataForThread must be called instead.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

PASSIVE_LEVEL

See also

CcMapData
CcPinRead
CcPreparePinWrite
CcSetBcbOwnerPointer
CcUnpinDataForThread

 

 

Send comments about this topic to Microsoft

Show: