Subject: Re: how to allocate 9MB of memory in kernel ?

From: Alessandro Rubini <[email-masked]>
Date: Wed, 23 Jul 2008 14:47:45 +0200

> If i allocate 9BM using vmalloc and remap to user space how should it
> address to the 9MB 
> SDRAM contigues address which i need to map for user access ? 

Use the nopage method and vmalloc_to_page in it.

I have an example in ftp://gnudd.com/pub/samplecode, in the
smallsample26 package, the module is "smallmmap.c" (I'm sure there are
simlilar examples elsewhere).

/alessandro