Query regarding dma_alloc()
sandeep kumar
coolsandyforyou at gmail.com
Fri Jul 29 05:12:37 EDT 2011
Hi all,
What is the difference between the following memory allocations.
1) Memory allocation by doing,
char *buf;
buf = kmalloc(BUF_LEN, *GFP_DMA* | GFP_KERNEL);
2) And by
char *buf;
buf = dma_alloc(...);
in the link http://www.arm.linux.org.uk/developer/memory.txt
it says that dma_alloc() returns virtual address in "ffc00000-----fffeffff"
this region,
while in the first case it is returning Virtual address in "low-memory"
region.
For DMA mappable memory which one we should use..?
--
With regards,
Sandeep Kumar Anantapalli,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110729/210ab76a/attachment.html
More information about the Kernelnewbies
mailing list