mm/mm_heap/mm.h: Fix some typos.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
700a51f4af
commit
f86ceea099
@ -42,12 +42,12 @@
|
||||
|
||||
/* 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_CHUNK - is the smallest physical chunk that can be allocated. It
|
||||
* must be at least a large as sizeof(struct mm_freenode_s). Larger values
|
||||
* may improve performance slightly, but will waste memory due to
|
||||
* MM_MIN_CHUNK - is the smallest physical chunk that can be allocated.
|
||||
* It must be at least as large as sizeof(struct mm_freenode_s). Larger
|
||||
* values may improve performance slightly, but will waste memory due to
|
||||
* quantization losses.
|
||||
*
|
||||
* 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];
|
||||
|
||||
/* 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
|
||||
FAR struct mm_delaynode_s *mm_delaylist[CONFIG_SMP_NCPUS];
|
||||
|
@ -38,8 +38,8 @@
|
||||
* Name: mm_addfreechunk
|
||||
*
|
||||
* Description:
|
||||
* Add a free chunk to the node next. It is assumed that the caller holds
|
||||
* the mm semaphore
|
||||
* Add a free chunk to the nodes list. It is assumed that the caller holds
|
||||
* the mm semaphore.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
@ -88,7 +88,7 @@ void mm_addregion(FAR struct mm_heap_s *heap, FAR void *heapstart,
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
|
@ -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
|
||||
* 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.
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user