how to allocate 9MB of memory in kernel ?
Alessandro Rubini
rubini at gnudd.com
Wed Jul 23 22:47:45 EST 2008
> 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
More information about the Linuxppc-embedded
mailing list