Author: mbosma
Date: Thu Jul 20 11:39:21 2006
New Revision: 23190
URL:
http://svn.reactos.org/svn/reactos?rev=23190&view=rev
Log:
Add Trim function stub.
Modified:
branches/cache_manager_rewrite/cc/view.c
Modified: branches/cache_manager_rewrite/cc/view.c
URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/cc/view.c…
==============================================================================
--- branches/cache_manager_rewrite/cc/view.c (original)
+++ branches/cache_manager_rewrite/cc/view.c Thu Jul 20 11:39:21 2006
@@ -97,6 +97,16 @@
return NULL;
}
+NTSTATUS
+CcTrimMemory (ULONG Target, ULONG Priority, PULONG NrFreedPages)
+{
+ DPRINT1("Trim function for cache memory is not implemented yet.\n");
+
+ (*NrFreedPages) = 0;
+
+ return STATUS_SUCCESS;
+}
+
VOID INIT_FUNCTION NTAPI
CcInitView (VOID)
@@ -149,6 +159,8 @@
InsertTailList (&CcFreeCacheViewListHead,
&CcCacheViewArray[i].ListEntry);
Base = (PVOID) ((ULONG_PTR) Base + CACHE_VIEW_SIZE);
}
+
+ MmInitializeMemoryConsumer(MC_CACHE, CcTrimMemory);
CcInitCacheZeroPage ();
}