Contiguous memory allocator

Manoj Nayak manojnayak2005 at gmail.com
Sat Mar 26 02:31:19 EDT 2016


  cma_declare_contiguous() allocates memory from memblock.
 cma_init_reserved_mem() initialize the memory. Then the memory is given to
    buddy allocator with migration type MIGRATE_MOVABLE. when CMA needs
those    pages, it can take it from buddy allocator.

  We are supposed to use equivalent DMA api dma_declare_contiguous().
    dma_declare_contiguous() calls cma_declare_contiguous().

http://lxr.free-electrons.com/source/arch/arm/mach-davinci/devices-da8xx.c#L833

   Regards
    Manoj Nayak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160326/6c6908d8/attachment.html 


More information about the Kernelnewbies mailing list