CcWaitForCurrentLazyWriterActivity function (ntifs.h)

The CcWaitForCurrentLazyWriterActivity routine puts the caller into a wait state until the current batch of lazy writer activity is completed.

Syntax

NTSTATUS CcWaitForCurrentLazyWriterActivity();

Return value

CcWaitForCurrentLazyWriterActivity can return one of the following NTSTATUS values:

Remarks

CcWaitForCurrentLazyWriterActivity puts the calling thread into a wait state until all work items currently in the lazy writer (read ahead or write behind) work queue have completed.

To prevent deadlock, the caller should release any currently held synchronization objects before calling CcWaitForCurrentLazyWriterActivity.

Requirements

Requirement Value
Minimum supported client Windows 2000
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
DDI compliance rules HwStorPortProhibitedDDIs(storport), SpNoWait(storport)

See also

CcInitializeCacheMap

CcReadAhead

CcSetAdditionalCacheAttributes

CcSetReadAheadGranularity