Re: mmap and multiple memory chucks allocated by kmalloc()

From: Alan Cox
Date: Sun Nov 28 2004 - 13:33:01 EST


On Sad, 2004-11-27 at 00:04, lan mu wrote:
> Can I use the kmalloc to allocate 5 memory chucks
> (4096*30) and then use remap_page_range() to map those
> 5 chucks one by one? it not seems to work. Anyone can
> tell me if it's feasible? or I have to use vmalloc?

If they don't need to be linear you can allocate individual pages and
use a do_no_page function. See the sound/oss/via82cxxx driver

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/