Re: Reserve physical page

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

 



> Ok. But in this case i have to ensure that the pfn is not mapped by the
> kernel, right?
> Will scanning mem_map to find such a pfn help?
> I'm wondering if there are regions which are typically 'free' which i can
> reserve and use.
Either you can look at memblock_reserve or reserve_bootmem. (this may
solve your problem).
or you alloc_page api which return a struct page, you SetPageReserved
and use page_to_pfn to get the pfn number.

thanks,
thayumanavar s.

_______________________________________________
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