CcSetDirtyPinnedData - NtDoc

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

VOID CcSetDirtyPinnedData(
  [in]           PVOID          BcbVoid,
  [in, optional] PLARGE_INTEGER Lsn
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

CcSetDirtyPinnedData function

Description

The CcSetDirtyPinnedData routine marks as dirty the buffer control block (BCB) for a pinned buffer whose contents have been modified.

Parameters

BcbVoid [in]

Pointer to the BCB structure to be marked as dirty.

Lsn [in, optional]

Logical sequence number (LSN) to be associated with this buffer.

Remarks

CcSetDirtyPinnedData marks the BCB as dirty, so that the contents of the pinned buffer will be lazy-written to disk. Even if the flush operation is to be performed by some means other than the lazy writer, CcSetDirtyPinnedData should be called whenever the contents of a pinned buffer are modified. This is especially important if the buffer was pinned only for read access (by CcPinRead or CcPinMappedData). Although buffers that are pinned only for read access can be modified, their contents are not automatically flushed to disk unless the buffers have been marked as dirty by calling CcSetDirtyPinnedData.

See also

CcMapData

CcPinMappedData

CcPinRead

CcPreparePinWrite

CcUnpinData