CcSetDirtyPinnedData routine

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

Syntax


VOID CcSetDirtyPinnedData(
  _In_      PVOID BcbVoid,
  _In_opt_  PLARGE_INTEGER Lsn
);

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.

Return value

None

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.

Requirements

Header

Ntifs.h (include Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= APC_LEVEL

See also

CcMapData
CcPinMappedData
CcPinRead
CcPreparePinWrite
CcUnpinData

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft