You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/11/24 17:57:17 UTC
(nuttx) branch master updated: mm: Fix some typos
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 3ed629274e mm: Fix some typos
3ed629274e is described below
commit 3ed629274e803ccc14895afd7a67757b7f424d35
Author: Nathan Hartman <59...@users.noreply.github.com>
AuthorDate: Fri Nov 24 10:56:47 2023 -0500
mm: Fix some typos
---
mm/Kconfig | 4 ++--
mm/circbuf/circbuf.c | 2 +-
mm/map/mm_map.c | 4 ++--
mm/mempool/mempool.c | 2 +-
mm/mempool/mempool_multiple.c | 10 +++++-----
mm/mm_heap/mm.h | 2 +-
6 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/mm/Kconfig b/mm/Kconfig
index 72ce1a8533..0f5fa84520 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -220,11 +220,11 @@ config MM_HEAP_MEMPOOL_EXPAND_SIZE
pool with insufficient memory in the multi-level memory pool.
config MM_HEAP_MEMPOOL_DICTIONARY_EXPAND_SIZE
- int "The expand size for multiple mempool's dictonary"
+ int "The expand size for multiple mempool's dictionary"
default MM_HEAP_MEMPOOL_EXPAND_SIZE
depends on MM_HEAP_MEMPOOL_THRESHOLD != 0
---help---
- This size describes the multiple mempool dictonary expend.
+ This size describes the multiple mempool dictionary expand.
config MM_HEAP_MEMPOOL_CHUNK_SIZE
int "The multiples pool chunk size"
diff --git a/mm/circbuf/circbuf.c b/mm/circbuf/circbuf.c
index f9fac1fdcf..bf24718e32 100644
--- a/mm/circbuf/circbuf.c
+++ b/mm/circbuf/circbuf.c
@@ -276,7 +276,7 @@ bool circbuf_is_full(FAR struct circbuf_s *circ)
* Name: circbuf_peekat
*
* Description:
- * Get data speicified position from the circular buffer without removing
+ * Get data specified position from the circular buffer without removing
*
* Note :
* That with only one concurrent reader and one concurrent writer,
diff --git a/mm/map/mm_map.c b/mm/map/mm_map.c
index f9bfe302cd..5d89bced60 100644
--- a/mm/map/mm_map.c
+++ b/mm/map/mm_map.c
@@ -84,7 +84,7 @@ void mm_map_unlock(void)
* Name: mm_map_initialize
*
* Description:
- * Allocates a task group specific mm_map stucture. Called when the group
+ * Allocates a task group specific mm_map structure. Called when the group
* is initialized
*
****************************************************************************/
@@ -119,7 +119,7 @@ void mm_map_initialize(FAR struct mm_map_s *mm, bool kernel)
* Name: mm_map_destroy
*
* Description:
- * De-allocates a task group specific mm_map stucture and the mm_map_mutex
+ * De-allocates a task group specific mm_map structure and the mm_map_mutex
*
****************************************************************************/
diff --git a/mm/mempool/mempool.c b/mm/mempool/mempool.c
index 921cc476bc..206c835583 100644
--- a/mm/mempool/mempool.c
+++ b/mm/mempool/mempool.c
@@ -293,7 +293,7 @@ out_with_lock:
* Name: mempool_free
*
* Description:
- * Release an memory block to the pool.
+ * Release a memory block to the pool.
*
* Input Parameters:
* pool - Address of the memory pool to be used.
diff --git a/mm/mempool/mempool_multiple.c b/mm/mempool/mempool_multiple.c
index a7f63183b7..de999465b2 100644
--- a/mm/mempool/mempool_multiple.c
+++ b/mm/mempool/mempool_multiple.c
@@ -254,7 +254,7 @@ static FAR void *mempool_multiple_alloc_callback(FAR struct mempool_s *pool,
row = mpool->dict_used >> mpool->dict_col_num_log2;
- /* There is no new pointer address to store the dictionarys */
+ /* There is no new pointer address to store the dictionaries */
DEBUGASSERT(mpool->dict_row_num > row);
@@ -358,10 +358,10 @@ mempool_multiple_get_dict(FAR struct mempool_multiple_s *mpool,
* alloc - The alloc memory function for multiples pool.
* alloc_size - Get the address size of the alloc function.
* free - The free memory function for multiples pool.
- * arg - The alloc & free memory fuctions used arg.
+ * arg - The alloc & free memory functions used arg.
* chunksize - The multiples pool chunk size.
- * expandsize - The expend mempry for all pools in multiples pool.
- * dict_expendsize - The expend size for multiple dictnoary.
+ * expandsize - The expand memory for all pools in multiples pool.
+ * dict_expendsize - The expand size for multiple dictionaries.
* Returned Value:
* Return an initialized multiple pool pointer on success,
* otherwise NULL is returned.
@@ -584,7 +584,7 @@ FAR void *mempool_multiple_realloc(FAR struct mempool_multiple_s *mpool,
* Name: mempool_multiple_free
*
* Description:
- * Release an memory block to the multiple mempry pool. The blk must have
+ * Release a memory block to the multiple memory pool. The blk must have
* been returned by a previous call to mempool_multiple_alloc.
*
* Input Parameters:
diff --git a/mm/mm_heap/mm.h b/mm/mm_heap/mm.h
index e12303b97c..2df5fe6528 100644
--- a/mm/mm_heap/mm.h
+++ b/mm/mm_heap/mm.h
@@ -209,7 +209,7 @@ static_assert(MM_SIZEOF_ALLOCNODE <= MM_MIN_CHUNK,
static_assert(MM_ALIGN >= sizeof(uintptr_t) &&
(MM_ALIGN & MM_GRAN_MASK) == 0,
- "Error memory aligment\n");
+ "Error memory alignment\n");
struct mm_delaynode_s
{