函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:change_pud_range

函数原型:static inline unsigned long change_pud_range(struct vm_area_struct *vma, p4d_t *p4d, unsigned long addr, unsigned long end, pgprot_t newprot, int dirty_accountable, int prot_numa)

返回类型:unsigned long

参数:

类型参数名称
struct vm_area_struct *vma
p4d_t *p4d
unsigned longaddr
unsigned longend
pgprot_tnewprot
intdirty_accountable
intprot_numa
267  pages等于0
269  pud等于pud_offset(p4d, addr)
270  循环
271  next等于pud_addr_end(addr, end)
272  如果pud_none_or_clear_bad(pud)则继续下一循环
274  pages加等于change_pmd_range(vma, pud, addr, next, newprot, dirty_accountable, prot_numa)
276 pud自加, addr等于next, addr不等于end循环
278  返回:pages
调用者
名称描述
change_p4d_range