Skip to contentSkip to conversation

kmalloc with GFP_DMA, or get_free_pages!!!

DISCUSSION Jalajadevi Ganapathy 2 participants 2 messages Mar 20, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 2 lines · Jalajadevi Ganapathy

To allocate memory for DMA operations,

Use PCI DMA. Yes, even for ISA devices. Read
Documentation/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/