Why not kmalloc() ??

Rune Torgersen runet at innovsys.com
Sat Jul 17 01:42:15 EST 2004

On Fri, 2004-07-16 at 09:06, Mark Chambers wrote:
> Is there any reason to use m8xx_cpm_hostalloc() over dma_alloc_consistent()
> for a loadable driver (that is, one loaded after VM initialized)?

Yous should even be able to use kmalloc(x, GFP_KERNEL | GFP_DMA)

This works on 82xx CPU's (and is actually used as a replacement for hostalloc
on the rewritten cpm memory allocation stuff that is yet to be released)

Might not work on 8xx though...

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

More information about the Linuxppc-embedded mailing list