函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:change_pageblock_range

函数原型:static void change_pageblock_range(struct page *pageblock_page, int start_order, int migratetype)

返回类型:void

参数:

类型参数名称
struct page *pageblock_page
intstart_order
intmigratetype
2306  nr_pageblocks等于1左移start_orderHuge pages are a constant size
2308 nr_pageblocks自减循环
2309  set_pageblock_migratetype(pageblock_page, migratetype)
2310  pageblock_page加等于pageblock_nr_pages
调用者
名称描述
steal_suitable_fallbackThis 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