On 10/12/2011 12:12 AM, Alexis Berlemont wrote:
> The methods are not the same at that level:
> - comedi: n * dma_alloc_coherent  + a vmap at the end
> - analogy:  a big vmalloc + n * page_to_phys(vmalloc_to_page(vaddr)

I do not know if that makes a difference, but the result of
dma_alloc_coherent is memory physically contiguous, whereas it is not
the case for memory returned by vmalloc.

dma_alloc_coherent also allows the GFP_DMA32 flag if you want 32 bits
memory.

-- 
                                                                Gilles.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to