kernel/eka/memmodel/epoc/direct/mutils.cpp
branchRCL_3
changeset 256 c1f20ce4abcf
parent 110 c734af59ce98
child 257 3e88ff8f41d5
equal deleted inserted replaced
249:a179b74831c9 256:c1f20ce4abcf
   472 	return KErrNotSupported;
   472 	return KErrNotSupported;
   473 	}
   473 	}
   474 
   474 
   475 
   475 
   476 /**
   476 /**
       
   477 Free a RAM zone which was previously allocated by one of these methods:
       
   478 Epoc::AllocPhysicalRam(), Epoc::ZoneAllocPhysicalRam() or 
       
   479 TRamDefragRequest::ClaimRamZone().
       
   480 
       
   481 All of the pages in the RAM zone must be allocated and only via one of the methods 
       
   482 listed above, otherwise a system panic will occur.
       
   483 
       
   484 @param	aZoneId			The ID of the RAM zone to free.
       
   485 @return	KErrNone 		If the operation was successful.
       
   486 		KErrArgument 	If a RAM zone with ID aZoneId was not found.
       
   487 
       
   488 @pre Calling thread must be in a critical section.
       
   489 @pre Interrupts must be enabled.
       
   490 @pre Kernel must be unlocked.
       
   491 @pre No fast mutex can be held.
       
   492 @pre Call in a thread context.
       
   493 @pre Can be used in a device driver.
       
   494 */
       
   495 EXPORT_C TInt Epoc::FreeRamZone(TUint aZoneId)
       
   496 	{
       
   497 	CHECK_PRECONDITIONS(MASK_THREAD_CRITICAL,"Epoc::FreeRamZone");
       
   498 	return KErrNotSupported;
       
   499 	}
       
   500 
       
   501 
       
   502 /**
   477 	@pre	Call in a thread context.
   503 	@pre	Call in a thread context.
   478 	@pre	Interrupts must be enabled.
   504 	@pre	Interrupts must be enabled.
   479 	@pre	Kernel must be unlocked.
   505 	@pre	Kernel must be unlocked.
   480 	@pre    No fast mutex can be held.
   506 	@pre    No fast mutex can be held.
   481 	@pre	Calling thread must be in a critical section.
   507 	@pre	Calling thread must be in a critical section.