mmap and multiple memory chucks allocated by kmalloc()

From: lan mu
Date: Fri Nov 26 2004 - 19:15:06 EST


Hi experts,

I have almost 620000 bytes data store in Kernal space
and would like to pass to user space via mmap.

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?

Now I only can mmaped the first chuck buffer and make
it work.

Since I'm not in the user group list, please send
directly email to me.

Thanks your help in advance!

-Lan




__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
-
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/