CcScheduleReadAhead 函式 (ntifs.h)

CcScheduleReadAhead 例程會在快取的檔案上執行預先讀取 (也稱為「延遲讀取」) 。 CcScheduleReadAhead 絕對不應該直接呼叫。 應該改為呼叫 CcReadAhead 宏。

語法

void CcScheduleReadAhead(
  [in] PFILE_OBJECT   FileObject,
  [in] PLARGE_INTEGER FileOffset,
  [in] ULONG          Length
);

參數

[in] FileObject

要執行預先讀取之檔案之檔案物件的指標。

[in] FileOffset

變數的指標,指定上次讀取發生位置之快取檔案內的起始位元組位移。

[in] Length

上次讀取之範圍的長度,以位元組為單位。

傳回值

備註

CcReadAhead 宏是 CcScheduleReadAhead 的包裝函式。 只有在 Length>= 256 時,才會呼叫 CcScheduleReadAhead。 度量顯示,針對較小的讀取呼叫 CcScheduleReadAhead 實際上會降低效能。

CcReadAheadCcScheduleReadAhead 只能在 成功呼叫 CcCopyReadCcFastCopyReadCcMdlRead 之後呼叫。

規格需求

需求
目標平台 Universal
標頭 ntifs.h (包含 Ntifs.h)
程式庫 NtosKrnl.lib
Dll NtosKrnl.exe

另請參閱

CcCopyRead

CcFastCopyRead

CcMdlRead

CcScheduleReadAhead

CcSetAdditionalCacheAttributes

CcSetReadAheadGranularity