Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:07:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initially all pages are reserved - free ones are freed* up by memblock_free_all() once the early boot process is* done. Non-atomic initialization, single-pass.
Proto:void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, unsigned long start_pfn, enum memmap_context context, struct vmem_altmap *altmap)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | size | |
int | nid | |
unsigned long | zone | |
unsigned long | start_pfn | |
enum memmap_context | context | |
struct vmem_altmap * | altmap |
5863 | If highest_memmap_pfn < end_pfn - 1 Then highest_memmap_pfn = end_pfn - 1 |
5889 | If context == MEMMAP_EARLY Then |
5890 | If Not early_pfn_valid(pfn) Then Continue |
5892 | If Not early_pfn_in_nid(pfn, nid) Then Continue |
5894 | If If zone is ZONE_MOVABLE but memory is mirrored, it is an overlapped init Then Continue |
5896 | If defer_init(nid, pfn, end_pfn) Then Break |
5900 | page = pfn_to_page(pfn) |
5901 | __init_single_page(page, pfn, zone, nid) |
5902 | If context == MEMMAP_HOTPLUG Then __SetPageReserved(page) |
5917 | If Not (pfn & pageblock_nr_pages - 1 ) Then |
5919 | cond_resched() |
Name | Describe |
---|---|
memmap_init |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |