From 4439798c7d9a866875d9ee7e43026b86b2534006 Mon Sep 17 00:00:00 2001 From: David Lin Date: Sat, 6 Jun 2020 17:55:31 +0800 Subject: [PATCH] Fixed some wrong notes in tos_mmblk.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. tos_mmblk_pool_create与tos_mmblk_alloc函数注释重复 2. tos_mmblk_pool_destroy与tos_mmblk_free函数注释重复 --- kernel/core/include/tos_mmblk.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/kernel/core/include/tos_mmblk.h b/kernel/core/include/tos_mmblk.h index 4761444b..2fd8f4de 100644 --- a/kernel/core/include/tos_mmblk.h +++ b/kernel/core/include/tos_mmblk.h @@ -68,15 +68,13 @@ __API__ k_err_t tos_mmblk_pool_create(k_mmblk_pool_t *mbp, void *pool_start, siz __API__ k_err_t tos_mmblk_pool_destroy(k_mmblk_pool_t *mbp); /** - * @brief Create a memory manage block pool. - * Create a memory manage block pool. + * @brief Allocate a memory manage block. + * Allocate a memory manage block. * * @attention None * * @param[in] mbp pointer to the memory block pool handler. - * @param[in] pool_start start address of the pool. - * @param[in] blk_num number of the blocks in the pool. - * @param[in] blk_size size of each block in the pool. + * @param[in] blk start address of the memory manage block. * * @return errcode * @retval #K_ERR_MMBLK_POOL_EMPTY the pool is empty. @@ -85,15 +83,13 @@ __API__ k_err_t tos_mmblk_pool_destroy(k_mmblk_pool_t *mbp); __API__ k_err_t tos_mmblk_alloc(k_mmblk_pool_t *mbp, void **blk); /** - * @brief Create a memory manage block pool. - * Create a memory manage block pool. + * @brief Free a memory manage block. + * Free a memory manage block. * * @attention None * * @param[in] mbp pointer to the memory block pool handler. - * @param[in] pool_start start address of the pool. - * @param[in] blk_num number of the blocks in the pool. - * @param[in] blk_size size of each block in the pool. + * @param[in] blk start address of the memory manage block. * * @return errcode * @retval #K_ERR_MMBLK_POOL_FULL the pool is full.