[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kmalloc with GFP_DMA, or get_free_pages!!!
Jalajadevi Ganapathy wrote:
>
> I could not find that file in the Documentation directory.
It's in kernel 2.4:
> [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.
--
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 majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/