Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:07:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:calc_memmap_size
Proto:static unsigned long __init calc_memmap_size(unsigned long spanned_pages, unsigned long present_pages)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | spanned_pages | |
unsigned long | present_pages |
6640 | pages = spanned_pages |
6650 | If spanned_pages > present_pages + (present_pages >> 4) && IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SPARSEMEM) Then pages = present_pages |
6654 | Return align the pointer to the (next) page boundary (pages * sizeof(structpage)) >> PAGE_SHIFT determines the page size |
Name | Describe |
---|---|
free_area_init_core | Set up the zone data structures:* - mark all pages reserved* - mark all memory queues empty* - clear the memory bitmaps* NOTE: pgdat should get zeroed by caller.* NOTE: this function is only called during early 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 |