dma_alloc_coherent
From: kirjanov@gmail.com (Denis Kirjanov)
Date: 2016-02-05 09:15:33
On 2/5/16, Ran Shalit [off-list ref] 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