Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mprotect.c Create Date:2022-07-28 14:51:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:change_pud_range

Proto: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)

Type:unsigned long

Parameter:

TypeParameterName
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  Do
271  next = pud_addr_end(addr, end)
272  If pud_none_or_clear_bad(pud) Then Continue
274  pages += change_pmd_range(vma, pud, addr, next, newprot, dirty_accountable, prot_numa)
276  When pud++, addr = next , addr != end cycle
278  Return pages
Caller
NameDescribe
change_p4d_range