diff -r 5e441a173c63 -r d9f1e5bfe28c kernel/eka/memmodel/epoc/direct/mutils.cpp --- a/kernel/eka/memmodel/epoc/direct/mutils.cpp Mon May 24 18:45:46 2010 +0100 +++ b/kernel/eka/memmodel/epoc/direct/mutils.cpp Thu Jun 10 11:48:01 2010 +0100 @@ -474,6 +474,32 @@ /** +Free a RAM zone which was previously allocated by one of these methods: +Epoc::AllocPhysicalRam(), Epoc::ZoneAllocPhysicalRam() or +TRamDefragRequest::ClaimRamZone(). + +All of the pages in the RAM zone must be allocated and only via one of the methods +listed above, otherwise a system panic will occur. + +@param aZoneId The ID of the RAM zone to free. +@return KErrNone If the operation was successful. + KErrArgument If a RAM zone with ID aZoneId was not found. + +@pre Calling thread must be in a critical section. +@pre Interrupts must be enabled. +@pre Kernel must be unlocked. +@pre No fast mutex can be held. +@pre Call in a thread context. +@pre Can be used in a device driver. +*/ +EXPORT_C TInt Epoc::FreeRamZone(TUint aZoneId) + { + CHECK_PRECONDITIONS(MASK_THREAD_CRITICAL,"Epoc::FreeRamZone"); + return KErrNotSupported; + } + + +/** @pre Call in a thread context. @pre Interrupts must be enabled. @pre Kernel must be unlocked.