函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\compaction.c Create Date:2022-07-27 15:55:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:solate_migratepages_range() - isolate migrate-able pages in a PFN range*@cc: Compaction control structure

函数原型:unsigned long isolate_migratepages_range(struct compact_control *cc, unsigned long start_pfn, unsigned long end_pfn)

返回类型:unsigned long

参数:

类型参数名称
struct compact_control *cc
unsigned longstart_pfn
unsigned longend_pfn
1091  pfn等于start_pfn
1092  block_start_pfn等于pageblock_start_pfn(pfn)
1093  如果block_start_pfn小于内存域第一个页帧的索引block_start_pfn等于内存域第一个页帧的索引
1095  block_end_pfn等于pageblock_end_pfn(pfn)
1097 pfn小于end_pfn循环
1101  block_end_pfn等于两数取小(block_end_pfn, end_pfn)
1103  如果非pageblock_pfn_to_page(block_start_pfn, block_end_pfn, zone)则继续下一循环
1107  pfn等于solate_migratepages_block() - isolate all migrate-able pages within* a single pageblock*@cc: Compaction control structure.*@low_pfn: The first PFN to isolate*@end_pfn: The one-past-the-last PFN to isolate, within same pageblock
1110  如果非pfn退出
1113  如果Number of pages to migrate 恒等于COMPACT_CLUSTER_MAX退出
1117  返回:pfn