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