Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:change_p4d_range

Proto:static inline unsigned long change_p4d_range(struct vm_area_struct *vma, pgd_t *pgd, 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
pgd_t *pgd
unsigned longaddr
unsigned longend
pgprot_tnewprot
intdirty_accountable
intprot_numa
287  pages = 0
289  p4d = p4d_offset(pgd, addr)
290  Do
291  next = p4d_addr_end(addr, end)
292  If p4d_none_or_clear_bad(p4d) Then Continue
294  pages += change_pud_range(vma, p4d, addr, next, newprot, dirty_accountable, prot_numa)
296  When p4d++, addr = next , addr != end cycle
298  Return pages
Caller
NameDescribe
change_protection_range