CcSetReadAheadGranularity - NtDoc

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

VOID CcSetReadAheadGranularity(
  [in] PFILE_OBJECT FileObject,
  [in] ULONG        Granularity
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

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

CcSetReadAheadGranularity function

Description

The CcSetReadAheadGranularity routine sets the read-ahead granularity for a cached file.

Parameters

FileObject [in]

Pointer to a file object for the cached file whose read-ahead granularity is to be set.

Granularity [in]

Specifies the desired read-ahead granularity, which must be an even power of two and must be greater than or equal to PAGE_SIZE.

Remarks

After CcInitializeCacheMap is called to cache a file, but before CcSetReadAheadGranularity is called for the cached file, the default read-ahead granularity for the cached file is equal to PAGE_SIZE.

See also

CcInitializeCacheMap

CcReadAhead

CcScheduleReadAhead

CcSetAdditionalCacheAttributes