mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
mm/mm.h: add mm_free_delaylist interface
This adds explicit `void mm_free_delaylist(heap)` interface so that to force freeing the heap's delaylist. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
@@ -137,6 +137,22 @@ void mm_mempool_dump_handle(FAR struct mempool_s *pool, FAR void *arg)
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mm_free_delaylist
|
||||
*
|
||||
* Description:
|
||||
* force freeing the delaylist of this heap.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void mm_free_delaylist(FAR struct mm_heap_s *heap)
|
||||
{
|
||||
if (heap)
|
||||
{
|
||||
free_delaylist(heap, true);
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mm_malloc
|
||||
*
|
||||
|
||||
@@ -1447,3 +1447,19 @@ FAR void *mm_zalloc(FAR struct mm_heap_s *heap, size_t size)
|
||||
|
||||
return alloc;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: mm_free_delaylist
|
||||
*
|
||||
* Description:
|
||||
* force freeing the delaylist of this heap.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void mm_free_delaylist(FAR struct mm_heap_s *heap)
|
||||
{
|
||||
if (heap)
|
||||
{
|
||||
free_delaylist(heap, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user