CcUnpinDataForThread function (ntifs.h)

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

Syntax

void CcUnpinDataForThread(
  [in] PVOID            Bcb,
  [in] ERESOURCE_THREAD ResourceThreadId
);

Parameters

[in] Bcb

Pointer to the BCB for the pages to be released.

[in] ResourceThreadId

Identifies the thread that originally acquired the BCB. Must match the owner pointer used in the call to CcSetBcbOwnerPointer.

Return value

None

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.

Requirements

Requirement Value
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See also

CcSetBcbOwnerPointer

CcUnpinData