mm/mm_heap/mm.h: Fix some typos.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
Abdelatif Guettouche 2021-07-31 17:17:21 +02:00 committed by Xiang Xiao
parent 700a51f4af
commit f86ceea099
4 changed files with 11 additions and 9 deletions

View File

@ -42,12 +42,12 @@
/* Chunk Header Definitions *************************************************/ /* Chunk Header Definitions *************************************************/
/* These definitions define the characteristics of allocator /* These definitions define the characteristics of the allocator:
* *
* MM_MIN_SHIFT is used to define MM_MIN_CHUNK. * MM_MIN_SHIFT is used to define MM_MIN_CHUNK.
* MM_MIN_CHUNK - is the smallest physical chunk that can be allocated. It * MM_MIN_CHUNK - is the smallest physical chunk that can be allocated.
* must be at least a large as sizeof(struct mm_freenode_s). Larger values * It must be at least as large as sizeof(struct mm_freenode_s). Larger
* may improve performance slightly, but will waste memory due to * values may improve performance slightly, but will waste memory due to
* quantization losses. * quantization losses.
* *
* MM_MAX_SHIFT is used to define MM_MAX_CHUNK * MM_MAX_SHIFT is used to define MM_MAX_CHUNK
@ -198,7 +198,9 @@ struct mm_heap_s
struct mm_freenode_s mm_nodelist[MM_NNODES]; struct mm_freenode_s mm_nodelist[MM_NNODES];
/* Free delay list, for some situation can't do free immdiately */ /* Free delay list, for some situations where we can't do free
* immdiately.
*/
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
FAR struct mm_delaynode_s *mm_delaylist[CONFIG_SMP_NCPUS]; FAR struct mm_delaynode_s *mm_delaylist[CONFIG_SMP_NCPUS];

View File

@ -38,8 +38,8 @@
* Name: mm_addfreechunk * Name: mm_addfreechunk
* *
* Description: * Description:
* Add a free chunk to the node next. It is assumed that the caller holds * Add a free chunk to the nodes list. It is assumed that the caller holds
* the mm semaphore * the mm semaphore.
* *
****************************************************************************/ ****************************************************************************/

View File

@ -88,7 +88,7 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart,
DEBUGVERIFY(mm_takesemaphore(heap)); DEBUGVERIFY(mm_takesemaphore(heap));
/* Adjust the provide heap start and size so that they are both aligned /* Adjust the provided heap start and size so that they are both aligned
* with the MM_MIN_CHUNK size. * with the MM_MIN_CHUNK size.
*/ */

View File

@ -160,7 +160,7 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size)
} }
/* If we found a node with non-zero size, then this is one to use. Since /* If we found a node with non-zero size, then this is one to use. Since
* the list is ordered, we know that is must be best fitting chunk * the list is ordered, we know that it must be the best fitting chunk
* available. * available.
*/ */