函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:change_protection

函数原型:unsigned long change_protection(struct vm_area_struct *vma, unsigned long start, unsigned long end, pgprot_t newprot, int dirty_accountable, int prot_numa)

返回类型:unsigned long

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longstart
unsigned longend
pgprot_tnewprot
intdirty_accountable
intprot_numa
337  如果is_vm_hugetlb_page(vma)则pages等于hugetlb_change_protection(vma, start, end, newprot)
339  否则pages等于change_protection_range(vma, start, end, newprot, dirty_accountable, prot_numa)
342  返回:pages
调用者
名称描述
mprotect_fixup