摘要: 什么时候释放的内存会“真正”被回收? 取决于内存管理器(如glibc的malloc()或其它内存库)以及操作系统的调度策略。 一般来说,调用free()后,内存变成“空闲状态”等待下一次分配,但不一定立即操作系统会释放这块物理内存。 4. 总结 在应用层面:free()会马上标记内存为可用,但实际上 阅读全文
posted @ 2025-05-30 15:20 LuckyBear0 阅读(9) 评论(0) 推荐(0)
摘要: 快速了解connman的使用 可以参考: https://www.jianshu.com/p/03aed25b96f7 ConnMan - ArchWiki (archlinux.org) wifi配置文件的介绍:https://man.archlinux.org/man/connman-servi 阅读全文
posted @ 2024-01-08 13:24 LuckyBear0 阅读(453) 评论(0) 推荐(0)
摘要: 蓝牙功能调试 1 内核配置 2 文件系统配置 (buildroot) 支持:pulseaudio-bluetooth 库 解决connect失败问题 启动bluetoothd 服务 /usr/libexec/bluetooth/bluetoothd -d -C -n & 启动Pulseaudio 服 阅读全文
posted @ 2023-10-31 19:56 LuckyBear0 阅读(1166) 评论(0) 推荐(0)
摘要: 1 ssh-keygen -t rsa -C ‘git注册的邮箱’ //记得改成自己的注册git的邮箱 2 把公钥黏贴到http://git.software.team/profile/keys页面中的大框中 3 本地配置全局用户名和用户Email git config --global user. 阅读全文
posted @ 2023-08-17 10:07 LuckyBear0 阅读(104) 评论(0) 推荐(0)
摘要: 以新唐 ma35d1开发板为例: 1、修改文件:board/nuvoton/ma35d1/uboot-env.txt mmcboot=if mmc dev 0; then echo "Booting form mmc ... ..."; setenv bootargs root=/dev/ram0 阅读全文
posted @ 2023-08-16 13:28 LuckyBear0 阅读(817) 评论(0) 推荐(0)
摘要: 内核启动失败,its文件的地址设置错误 原因:Its文件中的地址错误 load address:加载地址 load_addr mkimage -a entry point: 入口地址 entry_point mkimage -e bootm address:bootm 命令后面紧跟的地址,也就是加载 阅读全文
posted @ 2023-08-01 17:26 LuckyBear0 阅读(245) 评论(0) 推荐(0)