--- a/kernel/eka/memmodel/epoc/flexible/mmu/mpager.h Thu May 27 14:17:14 2010 +0300
+++ b/kernel/eka/memmodel/epoc/flexible/mmu/mpager.h Fri Jun 11 15:02:23 2010 +0300
@@ -353,6 +353,15 @@
*/
TInt DiscardPage(SPageInfo* aOldPageInfo, TUint aBlockZoneId, TBool aBlockRest);
+ /**
+ Attempt to discard the specified page and then allocate a page of type aPageType
+ in its place.
+
+ @param aPageInfo The page info of the page to discard.
+ @param aPageType The new page type to allocate into aPageInfo's physical address.
+ */
+ TInt DiscardAndAllocPage(SPageInfo* aPageInfo, TZonePageType aPageType);
+
/**
Update any live list links to replace the old page with the new page.