函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:walk_pgd_range

函数原型:static int walk_pgd_range(unsigned long addr, unsigned long end, struct mm_walk *walk)

返回类型:int

参数:

类型参数名称
unsigned longaddr
unsigned longend
struct mm_walk *walk
153  ops等于ops
154  err等于0
156  pgd等于a shortcut to get a pgd_t in a given mm(mm, addr)
157  循环
158  next等于When walking page tables, get the address of the next boundary,* or the end address of the range if that comes earlier. Although no* vma end wraps to 0, rounded up __boundary may wrap to 0 throughout.(addr, end)
159  如果pgd_none_or_clear_bad(pgd)则
160  如果pte_holeerr等于pte_hole(addr, next, walk)
162  如果err退出
164  继续下一循环
166  如果pmd_entrypte_entryerr等于walk_p4d_range(pgd, addr, next, walk)
168  如果err退出
170 pgd自加, addr等于next, addr不等于end循环
172  返回:err
调用者
名称描述
__walk_page_range