Why not kmalloc() ??

Dan Malek dan at embeddededge.com
Fri Jul 16 23:32:08 EST 2004


On Jul 16, 2004, at 8:06 AM, sanjeev ramachandran wrote:

> Bingo , But there is another function called dpalloc which does the
> same
> job of allocating from the dual port ram.

It is the only function that allocates from dpram.  hostalloc does not.
Use the dpram only for those functions as necessary.  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.


	-- Dan


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





More information about the Linuxppc-embedded mailing list