CcUnpinDataForThread routine

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

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.

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

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

PASSIVE_LEVEL

See also

CcSetBcbOwnerPointer
CcUnpinData

 

 

Send comments about this topic to Microsoft

Show: