Re: code location where memory for page structures is allocated.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Lamine,
now , i got it....


On Tue, Jun 24, 2014 at 6:50 PM, Karaoui mohamed lamine <moharaka@xxxxxxxxx> 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@xxxxxxxxx>:
> 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@xxxxxxxxx>
> wrote:
>>
>> On Tue, Jun 24, 2014 at 3:54 PM, sandeep kumar
>> <coolsandyforyou@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



--
With regards,
Sandeep Kumar Anantapalli,
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux