CcSetReadAheadGranularity routine

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

Syntax


VOID CcSetReadAheadGranularity(
  _In_ PFILE_OBJECT FileObject,
  _In_ ULONG        Granularity
);

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.

Return value

None

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.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

See also

CcInitializeCacheMap
CcReadAhead
CcScheduleReadAhead
CcSetAdditionalCacheAttributes

 

 

Send comments about this topic to Microsoft

Show: