函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Iterator over all subpages within the maximally aligned gigantic* page 'base'. Handle any discontiguity in the mem_map.

函数原型:static inline struct page *mem_map_next(struct page *iter, struct page *base, int offset)

返回类型:struct page

参数:

类型参数名称
struct page *iter
struct page *base
intoffset
416  如果此条件成立可能性小(为编译器优化)((offset & (MAX_ORDER_NR_PAGES - 1)) == 0)则
417  pfn等于page_to_pfn(base)加offset
418  如果非pfn_valid(pfn)则返回:NULL
420  返回:pfn_to_page(pfn)
422  返回:iter加1
调用者
名称描述
clear_gigantic_page
copy_user_gigantic_page
prep_compound_gigantic_page
__copy_gigantic_pageGigantic pages are so large that we do not guarantee that page++ pointer* arithmetic will work across the entire page. We need something more* specialized.