函数逻辑报告 |
Source Code:mm\page_alloc.c |
Create Date:2022-07-27 16:34:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This function implements actual steal behaviour. If order is large enough,* we can steal whole pageblock. If not, we first move freepages in this* pageblock to our migratetype and determine how many already-allocated pages
函数原型:static void steal_suitable_fallback(struct zone *zone, struct page *page, unsigned int alloc_flags, int start_type, bool whole_block)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct zone * | zone | |
struct page * | page | |
unsigned int | alloc_flags | |
int | start_type | |
bool | whole_block |
2385 | current_order等于page_order(page) |
2396 | 如果is_migrate_highatomic(old_block_type)则转到:single_page |
2400 | 如果current_order大于等于Huge pages are a constant size 则 |
2402 | 转到:single_page |
2410 | boost_watermark(zone) |
2411 | 如果alloc_flags按位与allow waking of kswapd 则设置内存位 |
2415 | 如果非whole_block则转到:single_page |
2418 | free_pages等于move_freepages_block(zone, page, start_type, & movable_pages) |
2425 | 如果start_type恒等于MIGRATE_MOVABLE则 |
2426 | alike_pages等于movable_pages |
2427 | 否则 |
2438 | 否则alike_pages等于0 |
2443 | 如果非free_pages则转到:single_page |
2450 | 如果free_pages加alike_pages大于等于1左移Huge pages are a constant size 减1位或page_group_by_mobility_disabled则set_pageblock_migratetype(page, start_type) |
2454 | 返回 |
2456 | single_page : |
2457 | area等于伙伴系统空闲内存页[current_order] |
名称 | 描述 |
---|---|
__rmqueue_fallback | Try finding a free buddy page on the fallback list and put it on the free* list of requested migratetype, possibly along with other pages from the same* block, depending on fragmentation avoidance heuristics. Returns true if |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |