kernel/eka/memmodel/epoc/flexible/mmu/mm.h
branchRCL_3
changeset 87 2f92ad2dc5db
parent 0 a41df078684a
child 109 b3a1d9898418
child 117 5b5d147c7838
equal deleted inserted replaced
81:e7d2d738d3c2 87:2f92ad2dc5db
    82 	/**
    82 	/**
    83 	Memory object containing normal program memory (RAM) in the same way as
    83 	Memory object containing normal program memory (RAM) in the same way as
    84 	EMemoryObjectMovable but with the additional option of marking pages as
    84 	EMemoryObjectMovable but with the additional option of marking pages as
    85 	'discardable'. Discardable pages may be reclaimed (remove) by the system at
    85 	'discardable'. Discardable pages may be reclaimed (remove) by the system at
    86 	any time, this state is controlled using the functions:
    86 	any time, this state is controlled using the functions:
       
    87 	- MM::MemoryAlloc
       
    88 	- MM::MemoryAllocContiguous
       
    89 	- MM::MemoryFree
    87 	- MM::MemoryAllowDiscard
    90 	- MM::MemoryAllowDiscard
    88 	- MM::MemoryDisallowDiscard
    91 	- MM::MemoryDisallowDiscard
    89 	*/
    92 	*/
    90 	EMemoryObjectDiscardable			= 4
    93 	EMemoryObjectDiscardable			= 4
    91 	};
    94 	};
   483 			KErrAlreadyExists, if any part of the region already contains pages;
   486 			KErrAlreadyExists, if any part of the region already contains pages;
   484 			KErrArgument, if the region exceeds the bounds of the memory object;
   487 			KErrArgument, if the region exceeds the bounds of the memory object;
   485 			KErrNotSupported, if the memory object doesn't support this operation;
   488 			KErrNotSupported, if the memory object doesn't support this operation;
   486 			otherwise another of the system wide error codes.
   489 			otherwise another of the system wide error codes.
   487 	*/
   490 	*/
   488 	static TInt MemoryAddPages(DMemoryObject* aMemory, TUint aIndex, TUint aCount, TPhysAddr* aPages);
   491 	static TInt MemoryAddPages(DMemoryObject* aMemory, TUint aIndex, TUint aCount, const TPhysAddr* aPages);
   489 
   492 
   490 	/**
   493 	/**
   491 	Add a contiguous range of pages to a region in a memory object.
   494 	Add a contiguous range of pages to a region in a memory object.
   492 
   495 
   493 	This function acquires and releases the memory objects lock.
   496 	This function acquires and releases the memory objects lock.