// ntifs.h
VOID CcUnpinDataForThread(
[in] PVOID Bcb,
[in] ERESOURCE_THREAD ResourceThreadId
);
View the official Windows Driver Kit DDI referenceNo description available.
The CcUnpinDataForThread routine releases pages of a cached file whose buffer control block (BCB) was modified by an earlier call to CcSetBcbOwnerPointer.
Bcb [in]Pointer to the BCB for the pages to be released.
ResourceThreadId [in]Identifies the thread that originally acquired the BCB. Must match the owner pointer used in the call to CcSetBcbOwnerPointer.
CcUnpinDataForThread releases the BCB for the indicated thread and performs any other necessary cleanup.
Each call to CcSetBcbOwnerPointer must be matched by a subsequent call to CcUnpinDataForThread.
CcUnpinDataForThread is functionally equivalent to CcUnpinData, except that it also releases the BCB resource for the indicated thread.