mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
mm:add heap args to mm_malloc_size
use malloc_size inside of where used mm_malloc_size Signed-off-by: anjiahao <anjiahao@xiaomi.com> Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -362,6 +362,7 @@ void mempool_multiple_free(FAR struct mempool_multiple_s *mpool,
|
||||
* Get size of memory block from multiple memory.
|
||||
*
|
||||
* Input Parameters:
|
||||
* mpool - The handle of multiple memory pool to be used.
|
||||
* blk - The pointer of memory block.
|
||||
*
|
||||
* Returned Value:
|
||||
@@ -369,7 +370,8 @@ void mempool_multiple_free(FAR struct mempool_multiple_s *mpool,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
size_t mempool_multiple_alloc_size(FAR void *blk);
|
||||
size_t mempool_multiple_alloc_size(FAR struct mempool_multiple_s *mpool,
|
||||
FAR void *blk);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mempool_multiple_memalign
|
||||
|
||||
@@ -196,7 +196,7 @@ FAR void *kmm_malloc(size_t size) malloc_like1(1);
|
||||
|
||||
/* Functions contained in mm_malloc_size.c **********************************/
|
||||
|
||||
size_t mm_malloc_size(FAR void *mem);
|
||||
size_t mm_malloc_size(FAR struct mm_heap_s *heap, FAR void *mem);
|
||||
|
||||
/* Functions contained in kmm_malloc_size.c *********************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user