dma_alloc_coherent
Denis Kirjanov
kirjanov at gmail.com
Fri Feb 5 04:15:33 EST 2016
On 2/5/16, Ran Shalit <ranshalit at gmail.com> wrote:
> Hello,
>
> I read the readme about dma API, but still don't understand how it
> should be used
> It is said that dma_alloc_coherent is responsible for allocating the
> buffer.
>
> 1. But how to trigger the dma transaction to start ?
> 2. Is there a callback when it is finished ?
It's used for data transfer between IO device and system memory. You
allocate a kernel buffer for DMA transaction (in this case dma from
device to system memory) and setup your device for dma transfer. An IO
device usually generates an interrupt when DMA transfer completes.
>
> Thank you,
> Ran
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
Regards / Mit besten Grüßen,
Denis
More information about the Kernelnewbies
mailing list