LCGetAllocatableSize

Syntax

#include <cafe/os.h>
    
u32 LCGetAllocatableSize( void );

Parameters

None.

Return Values

Returns the largest allocatable size in the locked cache heap for the current core. Because of fragmentation within the heap, the value returned may be less than that returned by LCGetUnallocated.

Description

Gets the available space in the locked cache in bytes for the current core.

Do Not Call From

Background, Cores 0 & 1 In applications, do not call this function from Core 0 or 1 when in the background.
Callbacks Do not call this function from any callback function.

See Also

LCAlloc
LCDealloc
LCDisableDMA
LCEnableDMA
LCGetDMAQueueLength
LCGetMaxSize
LCGetUnallocated
LCHardwareIsAvailable
LCIsDMAEnabled
LCLoadDMABlocks
LCStoreDMABlocks
LCWaitDMAQueue

Revision History

2013-05-08 Automated cleanup pass.
2012-05-08 Updated LCAlloc and LCDealloc. Added LCGetAllocatableSize. Removed LCLoadDMAASync and LCStoreDMAASync.
2012-05-08 Added LCHardwareIsAvailable.


CONFIDENTIAL