mm/heap: Changee mmchunk_handler_t to mm_node_handler_t

to unify the term usage(chunk v.s. node and mm v.s. mm_)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-01-06 01:26:16 +08:00 committed by Petro Karashchenko
parent 9aa835815f
commit 70ecb4ef26
2 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ struct mm_heap_s
/* This describes the callback for mm_foreach */ /* This describes the callback for mm_foreach */
typedef CODE void (*mmchunk_handler_t)(FAR struct mm_allocnode_s *node, typedef CODE void (*mm_node_handler_t)(FAR struct mm_allocnode_s *node,
FAR void *arg); FAR void *arg);
/**************************************************************************** /****************************************************************************
@ -259,7 +259,7 @@ int mm_size2ndx(size_t size);
/* Functions contained in mm_foreach.c **************************************/ /* Functions contained in mm_foreach.c **************************************/
void mm_foreach(FAR struct mm_heap_s *heap, mmchunk_handler_t handler, void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler,
FAR void *arg); FAR void *arg);
#endif /* __MM_MM_HEAP_MM_H */ #endif /* __MM_MM_HEAP_MM_H */

View File

@ -43,7 +43,7 @@
* *
****************************************************************************/ ****************************************************************************/
void mm_foreach(FAR struct mm_heap_s *heap, mmchunk_handler_t handler, void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler,
FAR void *arg) FAR void *arg)
{ {
FAR struct mm_allocnode_s *node; FAR struct mm_allocnode_s *node;