Thread (2 messages) flat view 2 messages, 1 author, 2016-03-09

kmalloc/malloc for dma ?

From: Ran Shalit <hidden>
Date: 2016-03-09 09:16:26

Hello,

I have some sample code which uses 2 test application:
1. test application in kernel , which allocates buffer using kmalloc
(GFP_KERNEL)
2. test application in userspace which allocates buffer using malloc

In both cases the buffers are DMA through PCI.
I don't understand how is it that the buffers are allocated with
malloc/kmalloc for DMA.
Is there any idea ?

Regards,
Ran
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help