vmalloc can only allocate 128k i guess where in i need 9MB allocated when driver is inserted and would be released only when its removed. mapping to user space is not a concern
--- Misbah <>< Arnd Bergmann wrote: > > On Thursday 17 July 2008, Misbah khan wrote: >> I need to allocate 9 MB of memory in to the kernel space which i need to >> mmap for the application to access. >> >> I need to know what could be the best possible way of doing the same. >> > > If you don't need the memory to be physically contiguous, you can use > vmalloc to get the memory, but then you need to use remap_vmalloc_range > for mapping the memory into a user address space. > > Arnd <>< > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > -- View this message in context: http://www.nabble.com/how-to-allocate-9MB-of-memory-in-kernel---tp18503022p18503765.html Sent from the linuxppc-embedded mailing list archive at Nabble.com. _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded