// ntifs.h
VOID CcUnpinData(
[in] PVOID Bcb
);
View the official Windows Driver Kit DDI referenceNo description available.
The CcUnpinData routine releases cached file data that was mapped or pinned by an earlier call to CcMapData, CcPinRead, or CcPreparePinWrite.
Bcb [in]Pointer to a buffer control block (BCB) for the data to be released.
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.