A Linux kernel module which can be used to allocate memory from the Contiguous Memory Allocator
License: GNU General Public License v3.0
C 89.38%Makefile 10.62%
cma_malloc's Introduction
This is a simple kernel module and a library to allocate continuous memory from the Linux kernel.
Make sure your kernel is compiled with CMA and DMA enabled. To use this module, the CMA memory needs to be in the address space addressable with 32 bits.
On AMD64 systems, this might not be done per default. Use the following kernel parameter to fix this:
cma=256M@0G-4G
256 means 256 MiB can can, offcourse, be changed to something else.