Why not kmalloc() ??

Rupesh S rupeshs at myw.ltindia.com
Sat Jul 17 14:51:44 EST 2004

Here I put my understanding.

The hostalloc() function allocates space from "hostalloc space" which  is basically a small pre-allocated non-caches space that has been initialized before "kernel memory allocator" is initialized. This "hostalloc space" is "Cache coherent" and not available for the "kernel memory allocator". But, "hostalloc space" cannot provide large memory buffers.

dma_alloc_consistent() function can be used allocating large memory buffers which is non-cached.

How is dma_alloc_consistent() different from kmalloc() ? - Is it that dma_alloc_consistent() allocates memory which is non-cached and kmaloc() allocates cached memory?

Rupesh S

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

More information about the Linuxppc-embedded mailing list