CcUnpinData - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

VOID CcUnpinData(
  [in] PVOID Bcb
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntifs-ccunpindata)

CcUnpinData function

Description

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

Parameters

Bcb [in]

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

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.

See also

CcMapData

CcPinRead

CcPreparePinWrite

CcSetBcbOwnerPointer

CcUnpinDataForThread