mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
mm: Support malloc_size function
and rename malloc_usable_size to malloc_size Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
f4a374b6d9
commit
97216c220b
@@ -23,9 +23,9 @@
|
||||
ifeq ($(CONFIG_MM_DEFAULT_MANAGER),y)
|
||||
|
||||
CSRCS += mm_initialize.c mm_sem.c mm_addfreechunk.c mm_size2ndx.c
|
||||
CSRCS += mm_malloc_usable_size.c mm_shrinkchunk.c
|
||||
CSRCS += mm_brkaddr.c mm_calloc.c mm_extend.c mm_free.c mm_mallinfo.c
|
||||
CSRCS += mm_malloc.c mm_memalign.c mm_realloc.c mm_zalloc.c mm_heapmember.c
|
||||
CSRCS += mm_malloc_size.c mm_shrinkchunk.c mm_brkaddr.c mm_calloc.c
|
||||
CSRCS += mm_extend.c mm_free.c mm_mallinfo.c mm_malloc.c
|
||||
CSRCS += mm_memalign.c mm_realloc.c mm_zalloc.c mm_heapmember.c
|
||||
|
||||
ifeq ($(CONFIG_BUILD_KERNEL),y)
|
||||
CSRCS += mm_sbrk.c
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* mm/mm_heap/mm_malloc_usable_size.c
|
||||
* mm/mm_heap/mm_malloc_size.c
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
@@ -36,7 +36,7 @@
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
size_t malloc_usable_size(FAR void *mem)
|
||||
size_t malloc_size(FAR void *mem)
|
||||
{
|
||||
FAR struct mm_freenode_s *node;
|
||||
|
||||
Reference in New Issue
Block a user