Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:07:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:calculate_node_totalpages
Proto:static void __init calculate_node_totalpages(struct pglist_data *pgdat, unsigned long node_start_pfn, unsigned long node_end_pfn, unsigned long *zones_size, unsigned long *zholes_size)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct pglist_data * | pgdat | |
unsigned long | node_start_pfn | |
unsigned long | node_end_pfn | |
unsigned long * | zones_size | |
unsigned long * | zholes_size |
6524 | realtotalpages = 0 , totalpages = 0 |
6527 | When i < MAX_NR_ZONES cycle |
6528 | zone = node_zones + i |
6532 | size = zone_spanned_pages_in_node(node_id, i, node_start_pfn, node_end_pfn, & zone_start_pfn, & zone_end_pfn, zones_size) |
6538 | real_size = size - zone_absent_pages_in_node(node_id, i, node_start_pfn, node_end_pfn, zholes_size) |
6541 | If size Then zone_start_pfn == zone_start_paddr >> PAGE_SHIFT = zone_start_pfn |
6543 | Else zone_start_pfn == zone_start_paddr >> PAGE_SHIFT = 0 |
6545 | spanned_pages = size |
6546 | present_pages = real_size |
6548 | totalpages += size |
6549 | realtotalpages += real_size |
Name | Describe |
---|---|
free_area_init_node |
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 |