函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:walk_hugetlb_range

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

返回类型:int

参数:

类型参数名称
unsigned longaddr
unsigned longend
struct mm_walk *walk
186  vma等于vma
187  h等于hstate_vma(vma)
189  hmask等于huge_page_mask(h)
190  sz等于huge_page_size(h)
192  ops等于ops
193  err等于0
195  循环
196  next等于hugetlb_entry_end(h, addr, end)
197  pte等于huge_pte_offset(mm, addr & hmask, sz)
199  如果pteerr等于hugetlb_entry(pte, hmask, addr, next, walk)
201  否则如果pte_holeerr等于pte_hole(addr, next, walk)
204  如果err退出
206 addr等于next, addr不等于end循环
208  返回:err
调用者
名称描述
__walk_page_range