CcUnpinDataForThread - NtDoc

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

VOID CcUnpinDataForThread(
  [in] PVOID            Bcb,
  [in] ERESOURCE_THREAD ResourceThreadId
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

CcUnpinDataForThread function

Description

The CcUnpinDataForThread routine releases pages of a cached file whose buffer control block (BCB) was modified by an earlier call to CcSetBcbOwnerPointer.

Parameters

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.

Remarks

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.

See also

CcSetBcbOwnerPointer

CcUnpinData