Function report |
Source Code:mm\compaction.c |
Create Date:2022-07-28 14:31:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:solate_migratepages_range() - isolate migrate-able pages in a PFN range*@cc: Compaction control structure
Proto:unsigned long isolate_migratepages_range(struct compact_control *cc, unsigned long start_pfn, unsigned long end_pfn)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
struct compact_control * | cc | |
unsigned long | start_pfn | |
unsigned long | end_pfn |
1092 | block_start_pfn = pageblock_start_pfn(pfn) |
1093 | If block_start_pfn < zone_start_pfn == zone_start_paddr >> PAGE_SHIFT Then block_start_pfn = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT |
1095 | block_end_pfn = pageblock_end_pfn(pfn) |
1101 | block_end_pfn = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(block_end_pfn, end_pfn) |
1103 | If Not pageblock_pfn_to_page(block_start_pfn, block_end_pfn, zone) Then Continue |
1110 | If Not pfn Then Break |
1113 | If Number of pages to migrate == COMPACT_CLUSTER_MAX Then Break |
1117 | Return pfn |
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 |