Hi Ajay, Q: does the kernel create page tables for the memory returned by kmalloc. A: Yes, it does. Without page allocation table, the kernel is unable to know which chunks of memory are allocated and which are not. http://www.makelinux.net/ldd3/chp-8-sect-1 is a fairly good introduction of kmalloc. If you are looking for an introduction of Linux memory management, have a look here: http://www.linux-tutorial.info/modules.php?name=MContent&pageid=89
Emeric On Mon, Oct 29, 2012 at 2:38 PM, ajay <mna...@gmail.com> wrote: > Kmalloc is used for returning a logical address pointer to a chunk of > physical address.My question is that the locgical address that kmalloc is a > part of the virtual memory .i.e does the kernel create page tables for the > memory returned by kmalloc. > > -- > unsubscribe: android-kernel+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel