Skip to contentSkip to conversation

kmalloc with GFP_DMA, or get_free_pages!!!

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

lore
Share & tools
lore
#0 lore raw

I could not find that file in the Documentation directory.
I have one more question here. I read from a book that virt_to_phy is same as virt_to_bus for PCI devices. Is that True?

--
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

I could not find that file in the Documentation directory.

It's in kernel 2.4:

Quoted 5 lines

[jgarzik@rum linux_2_4]$ ls -l Documentation/DM*
-rw-r--r-- 1 jgarzik jgarzik 15302 Mar 7 04:00 Documentation/DMA-mapping.txt

I have one more question here. I read from a book that virt_to_phy is same as virt_to_bus for PCI devices. Is that True?

On some platforms yes, on some, no. Nevertheless, in kernel 2.4.x at least, do not use virt_to_bus and virt_to_phys, use DMA mapping... Using virt_to_bus will kill the link step on some platforms.

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/