// ntifs.h
NTSTATUS CcWaitForCurrentLazyWriterActivity();
View the official Windows Driver Kit DDI referenceNo description available.
The CcWaitForCurrentLazyWriterActivity routine puts the caller into a wait state until the current batch of lazy writer activity is completed.
CcWaitForCurrentLazyWriterActivity can return one of the following NTSTATUS values:
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.
CcSetAdditionalCacheAttributes