Why not kmalloc() ??

Mark Chambers markc at mail.com
Sat Jul 17 00:06:12 EST 2004

> Use hostalloc
> only for those functions necesary (small serial fifos and such).
> Use dma_alloc_consistent() for large memory buffers that you need
> to attach to BDs, for example Ethernet buffers.  There is very little
> memory available from either dpalloc or hostalloc, and they must
> be used only when necessary.

Is there any reason to use m8xx_cpm_hostalloc() over dma_alloc_consistent()
for a loadable driver (that is, one loaded after VM initialized)?

Mark Chambers

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

More information about the Linuxppc-embedded mailing list