From ad18026a59fc2853c9580e040f959f9f42082640 Mon Sep 17 00:00:00 2001 From: kenneth Date: Mon, 22 Nov 2021 20:40:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=A8=E5=A4=B4=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E8=A1=A5=E5=85=85LOSCFG=5FMEM=5FFREE=5FBY=5FTASKID?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E7=9A=84=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LOSCFG_MEM_FREE_BY_TASKID函数在头文件kernel\include\los_memory.h中没有声明,使用会有警告,补充声明该函数。 close #I4JBOV Signed-off-by: kenneth --- kernel/include/los_memory.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/kernel/include/los_memory.h b/kernel/include/los_memory.h index 134f6464..2c29601c 100644 --- a/kernel/include/los_memory.h +++ b/kernel/include/los_memory.h @@ -120,6 +120,30 @@ extern UINT32 LOS_MemDeInit(VOID *pool); extern UINT32 LOS_MemPoolList(VOID); #endif +#if (LOSCFG_MEM_FREE_BY_TASKID == 1) +/** + * @ingroup los_memory + * @brief Free memory nodes allocated by the specified task. + * + * @par Description: + * + * + * @param pool [IN] The memory pool address. + * @param taskID [IN] The task ID and all memory nodes allocated by this task will be freed. + * + * @retval #OS_ERROR The memory pool is NULL or the task ID is invalid. + * @retval #LOS_OK All memory nodes allocated by this task are freed successfully. + * @par Dependency: + * + * @see None. + */ +extern UINT32 LOS_MemFreeByTaskID(VOID *pool, UINT32 taskID); +#endif + #if (LOSCFG_MEM_MUL_REGIONS == 1) typedef struct { VOID *startAddress;