CcSetAdditionalCacheAttributes - NtDoc

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

VOID CcSetAdditionalCacheAttributes(
  [in] PFILE_OBJECT FileObject,
  [in] BOOLEAN      DisableReadAhead,
  [in] BOOLEAN      DisableWriteBehind
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

CcSetAdditionalCacheAttributes function

Description

Call the CcSetAdditionalCacheAttributes routine to enable or disable read-ahead (also called "lazy read") or write-behind (also called "lazy write") on a cached file.

Parameters

FileObject [in]

Pointer to a file object for the cached file.

DisableReadAhead [in]

Boolean value set to TRUE to disable read-ahead, or FALSE to enable it.

DisableWriteBehind [in]

Boolean value set to TRUE to disable write-behind, or FALSE to enable it.

Remarks

CcSetAdditionalCacheAttributes can be called any time after calling CcInitializeCacheMap. Initially, both read-ahead and write-behind are enabled.

See also

CcInitializeCacheMap

CcReadAhead

CcSetReadAheadGranularity