CcUnpinData function (ntifs.h)
The CcUnpinData routine releases cached file data that was mapped or pinned by an earlier call to CcMapData, CcPinRead, or CcPreparePinWrite.
void CcUnpinData(
[in] PVOID Bcb
);
[in] Bcb
Pointer to a buffer control block (BCB) for the data to be released.
None
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.
Requirement | Value |
---|---|
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |