--- a/kernel/eka/memmodel/epoc/flexible/mmu/mptalloc.h Wed Jun 23 19:44:53 2010 +0300
+++ b/kernel/eka/memmodel/epoc/flexible/mmu/mptalloc.h Tue Jul 06 15:50:07 2010 +0300
@@ -137,6 +137,17 @@
TInt MovePage( DMemoryObject* aMemory, SPageInfo* aOldPageInfo,
TUint aBlockZoneId, TBool aBlockRest);
+ /**
+ Attempts to discard a page of page tables using #MovePage. If the discard was
+ succesful it then allocates the page with type aPageType.
+
+ @param aMemory This should always be the page table info memory object.
+ @param aPageInfo The page info of the page to discard.
+
+ @return KErrNone if the page could be successfully discarded and its RAM page allocated.
+ */
+ TInt MoveAndAllocPage(DMemoryObject* aMemory, SPageInfo* aPageInfo, TZonePageType aPageType);
+
#ifdef _DEBUG
/**
Debug function for use by DPager::RemovePage() to allow it to remove