Thank you Lamine, now , i got it.... On Tue, Jun 24, 2014 at 6:50 PM, Karaoui mohamed lamine <moharaka@gmail.com> wrote:
mm/page_alloc.c AFAICC it's memmap_init_zone that initialize all pfns of a zone to default values (setting the pages as reserved).
Note that for the page structures we don't use the standard memory allocators (kmalloc, vmalloc, etc), we simply calculate the amount of memory that all the structures will hold in, and then allocate a corresponding range of memory.
Hope that help. Regards.
2014-06-24 13:21 GMT+02:00 sandeep kumar <coolsandyforyou@gmail.com>:
hi Ayan
sparse_mem_maps_populate_node NO, i want to see where we do allocation of all physical "struct page" pointers.
struct page[NR_PAGES]; kind of stuff
thanks sandeep
On Tue, Jun 24, 2014 at 4:15 PM, AYAN KUMAR HALDER <ayankumarh@gmail.com
wrote:
On Tue, Jun 24, 2014 at 3:54 PM, sandeep kumar <coolsandyforyou@gmail.com> wrote:
Hi All
For each physical page, there will be a corresponding "struct page" Can anyone tell me, in ARM architecure the code location where "struct page" memory allocation happens..
To give you a small pointer, the page tables are set in paging_init(), arch/arm/mm/mmu.c. Is this what you are looking for.
Regards, Ayan Kumar Halder
-- With regards, Sandeep Kumar Anantapalli,
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- With regards, Sandeep Kumar Anantapalli,