Allocating more than 4 MB of pinned contiguous memory in the Linux Kernel

吃可爱长大的小学妹 提交于 2019-12-02 16:46:53

If you can compile your PCI device driver into the kernel (that is, not linked as a module), you could try allocating the memory at boot time. That should let you bypass the upper bounds on dynamic allocations. Refer to Linux Device Drivers, ed. 3 ch. 8 for details.

CMA(Contiguous Memory Allocator) are the best solution for your need IMO. You just need to ship to the newest kernel.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!