CcUnpinData function (ntifs.h)

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

[in] Bcb

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

Requirement Value
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