kmalloc with GFP_DMA, or get_free_pages!!!
To allocate memory for DMA operations, i can use kmalloc (,,GFP_DMA.. ). In which case I need to use get_free_pages? Both the above gives me the contiguous memory. I understand that get_free_pages gives me in terms of pages. So it would be more than the memory which i asked for. I am not sure watz the exact difference between these two.
Could anyone plz lemme know about this?
Thanks
Jalaja
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
Quoted 2 lines · Jalajadevi Ganapathy
To allocate memory for DMA operations,
Use PCI DMA. Yes, even for ISA devices. ReadDocumentation/DMA-mapping.txt.
Signature · 7 lines
Jeff Garzik | May you have warm words on a cold evening, Building 1024 | a full mooon on a dark night, MandrakeSoft | and a smooth road all the way to your door. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/