Skip to contentSkip to conversation

Why not kmalloc() ??

DISCUSSION Rupesh S 1 participant 1 message Jul 17, 2004

lore
Share & tools
lore

Rupesh S

author
#0 lore raw

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?

Thanks
--
Rupesh S

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