函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__first_valid_page

函数原型:static inline struct page *__first_valid_page(unsigned long pfn, unsigned long nr_pages)

返回类型:struct page

参数:

类型参数名称
unsigned longpfn
unsigned longnr_pages
151 i小于nr_pages循环
154  page等于Return page for the valid pfn only if the page is online. All pfn* walkers which rely on the fully initialized page->flags and others* should use this rather than pfn_valid && pfn_to_page(pfn + i)
155  如果非page则继续下一循环
157  返回:page
159  返回:NULL
调用者
名称描述
start_isolate_page_rangestart_isolate_page_range() - make page-allocation-type of range of pages to* be MIGRATE_ISOLATE.*@start_pfn: The lower PFN of the range to be isolated.*@end_pfn: The upper PFN of the range to be isolated.
undo_isolate_page_rangeMake isolated pages available again.
test_pages_isolatedCaller should ensure that requested range is in a single zone