Re: Bugs in usb-skeleton.c??? :)

From: Sergej Pupykin
Date: Thu Jul 13 2006 - 09:09:14 EST


>> Does kmalloc always allocate pages that can be used in DMA?

AvdV> normally yes. HOWEVER....

I use sh4 cpu...

AvdV> ..it is nicer to use the DMA allocation API (which internally may fall
AvdV> back to kmalloc etc), while kmalloc may work, it can be quite slow in
AvdV> how it's made to work. So it's just nicer to just use the DMA memory
AvdV> allocators... (see Documentation/DMA-API.txt file for a description of
AvdV> this)

Thanks, I'll try it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/