函数逻辑报告 | 
Source Code:mm\page_alloc.c | 
Create Date:2022-07-27 16:34:17 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Move the free pages in a range to the free lists of the requested type.* Note that start_page and end_pages are not aligned on a pageblock* boundary. If alignment is required, use move_freepages_block()
函数原型:static int move_freepages(struct zone *zone, struct page *start_page, struct page *end_page, int migratetype, int *num_movable)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct zone * | zone | |
| struct page * | start_page | |
| struct page * | end_page | |
| int | migratetype | |
| int * | num_movable | 
| 2243 | pages_moved等于0 | 
| 2246 | 如果非pfn_valid_within(page_to_pfn(page))则 | 
| 2247 | page自加 | 
| 2248 | 继续下一循环 | 
| 2266 | VM_BUG_ON_PAGE(page_to_nid(page) != zone_to_nid(zone), page) | 
| 2267 | VM_BUG_ON_PAGE(page_zone(page) != zone, page) | 
| 2269 | order等于page_order(page) | 
| 2272 | pages_moved加等于1左移order位 | 
| 2275 | 返回:pages_moved | 
| 名称 | 描述 | 
|---|---|
| move_freepages_block | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |