// ntddk.h
BOOLEAN KeInvalidateAllCaches();
View the official Windows Driver Kit DDI referenceNo description available.
The KeInvalidateAllCaches routine flushes all processor caches.
KeInvalidateAllCaches returns a value that is reserved for system use. Treat this value as VOID.
The KeInvalidateAllCaches routine flushes each processor's caches and marks each cache's contents invalid. The processor caches are guaranteed to have completed the flush operation before KeInvalidateAllCaches returns.
KeInvalidateAllCaches has been superseded by KeInvalidateRangeAllCaches. See Remarks of that page for more information about the differences between the routines.
This function is not available on the Arm and Arm64 architectures, where there is no architecturally reliable way to flush the entire cache.