mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
mm: add mm_largest api to get the current largest available memory block
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
@@ -1476,3 +1476,16 @@ size_t mm_heapfree(FAR struct mm_heap_s *heap)
|
||||
{
|
||||
return heap->mm_heapsize - heap->mm_curused;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mm_heapfree_largest
|
||||
*
|
||||
* Description:
|
||||
* Return the largest chunk of contiguous memory in the heap
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
size_t mm_heapfree_largest(FAR struct mm_heap_s *heap)
|
||||
{
|
||||
return SIZE_MAX;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user