Function report |
Source Code:mm\compaction.c |
Create Date:2022-07-28 14:30:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:solate_freepages_range() - isolate free pages
Proto:unsigned long isolate_freepages_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 |
690 | If block_start_pfn < zone_start_pfn == zone_start_paddr >> PAGE_SHIFT Then block_start_pfn = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT |
692 | block_end_pfn = pageblock_end_pfn(pfn) |
698 | isolate_start_pfn = pfn |
700 | 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) |
707 | If pfn >= block_end_pfn Then |
709 | block_end_pfn = pageblock_end_pfn(pfn) |
713 | If Not pageblock_pfn_to_page(block_start_pfn, block_end_pfn, zone) Then Break |
725 | If Not isolated Then Break |
736 | split_map_pages( & freelist) |
740 | release_freepages( & freelist) |
741 | Return 0 |
745 | 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 |