From ced40f33c5546898bcffd8b3ef7d0365b5d285df Mon Sep 17 00:00:00 2001 From: hiro_655 <95989761+Hustrookies@users.noreply.github.com> Date: Fri, 14 Apr 2023 07:25:59 +0800 Subject: [PATCH] [HUST CSE][doxygen][src]Fix the comment in rt_thread_defunct_enqueue (#7228) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据这个issues #6857 在idle.c文件中找到一个函数缺失参数 --- src/idle.c | 2 ++ src/slab.c | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/idle.c b/src/idle.c index 4903ed3fe5..500b16c779 100644 --- a/src/idle.c +++ b/src/idle.c @@ -140,6 +140,8 @@ rt_err_t rt_thread_idle_delhook(void (*hook)(void)) /** * @brief Enqueue a thread to defunct queue. * + * @param thread the thread to be enqueued. + * * @note It must be called between rt_hw_interrupt_disable and rt_hw_interrupt_enable */ void rt_thread_defunct_enqueue(rt_thread_t thread) diff --git a/src/slab.c b/src/slab.c index f48179afaf..e883a9de9b 100644 --- a/src/slab.c +++ b/src/slab.c @@ -204,7 +204,7 @@ struct rt_slab /** * @brief Alloc memory size by page. * - * @param slab the slab memory management object. + * @param m the slab memory management object. * * @param npages the number of pages. */ @@ -243,7 +243,7 @@ void *rt_slab_page_alloc(rt_slab_t m, rt_size_t npages) /** * @brief Free memory by page. * - * @param slab the slab memory management object. + * @param m the slab memory management object. * * @param addr is the head address of first page. * @@ -308,8 +308,6 @@ static void rt_slab_page_init(struct rt_slab *slab, void *addr, rt_size_t npages /** * @brief This function will init slab memory management algorithm * - * @param slab the slab memory management object. - * * @param name is the name of the slab memory management object. * * @param begin_addr the beginning address of system page.