kernel/eka/memmodel/epoc/flexible/mmu/mptalloc.h
branchRCL_3
changeset 28 5b5d147c7838
parent 6 0173bcd7697c
--- a/kernel/eka/memmodel/epoc/flexible/mmu/mptalloc.h	Tue May 11 17:28:22 2010 +0300
+++ b/kernel/eka/memmodel/epoc/flexible/mmu/mptalloc.h	Tue May 25 14:09:55 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