高通平台蓝牙-- clean up btm properly
2022/1/25 14:04:28
本文主要是介绍高通平台蓝牙-- clean up btm properly,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
问题描述:
Add btm_free() to clean up btm properly
解决方法:
vendor/qcom/opensource/commonsys/system/bt/stack/btm/btm_int.h
@@ -48,6 +48,7 @@ extern tBTM_CB btm_cb; ******************************************* */ extern void btm_init(void); +extern void btm_free(void); /* Internal functions provided by btm_inq.cc ******************************************
vendor/qcom/opensource/commonsys/system/bt/stack/btm/btm_main.cc
@@ -87,3 +87,21 @@ void btm_init(void) { btm_dev_init(); /* Device Manager Structures & HCI_Reset */ } + +/** This function is called to free dynamic memory and system resource allocated by btm_init */ +void btm_free(void) { + fixed_queue_free(btm_cb.page_queue, NULL); + btm_cb.page_queue = NULL; + + fixed_queue_free(btm_cb.sec_pending_q, NULL); + btm_cb.sec_pending_q = NULL; &#
这篇关于高通平台蓝牙-- clean up btm properly的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-28易优新手必读安装教程-icode9专业技术文章分享
- 2024-06-28忘记eyoucms后台密码怎么办?-icode9专业技术文章分享
- 2024-06-26终极指南:Scrum中如何设置需求优先级
- 2024-06-26AI大模型企业应用实战(25)-为Langchain Agent添加记忆功能
- 2024-06-26小白家庭 nas 搭建方案-icode9专业技术文章分享
- 2024-06-23AI大模型企业应用实战(14)-langchain的Embedding
- 2024-06-23AI大模型企业应用实战(15)-langchain核心组件
- 2024-06-23AI大模型企业应用实战(16)-langchain核心组件
- 2024-06-23AI 大模型企业应用实战(06)-初识LangChain
- 2024-06-19EntBot.ai: AI Website Chatbot for Product Guides and Development Doc