Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发相机驱动程序,每当我尝试分配内存时10M,它都会失败,但4-5M会创建内存。使用内存分配有限制cma_alloc吗?如果是,我该如何增加它?
10M
4-5M
cma_alloc
乍一看,我会说分配 10M 的连续内存已经很可疑了。为什么需要这么多?
您使用的是 Android,因此表明是嵌入式平台,这使得 10M 的内存更加可疑。
从我在网上找到的文档中,您还需要指定系统在启动时需要多少 cma 内存。您是否指定超过 10M?