函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set_huge_ptep_writable

函数原型:static void set_huge_ptep_writable(struct vm_area_struct *vma, unsigned long address, pte_t *ptep)

返回类型:void

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longaddress
pte_t *ptep
3269  entry等于huge_pte_mkwrite(huge_pte_mkdirty(huge_ptep_get(ptep)))
3270  如果huge_ptep_set_access_flags(vma, address, ptep, entry, 1)则The x86 doesn't have any external MMU info: the kernel page* tables contain all the necessary information.
调用者
名称描述
hugetlb_cowHugetlb_cow() should be called with page lock of the original hugepage held.* Called with hugetlb_instantiation_mutex held and pte_page locked so we* cannot race with other handlers or page migration.