Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_huge_ptep_writable

Proto:static void set_huge_ptep_writable(struct vm_area_struct *vma, unsigned long address, pte_t *ptep)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longaddress
pte_t *ptep
3269  entry = huge_pte_mkwrite(huge_pte_mkdirty(huge_ptep_get(ptep)))
3270  If huge_ptep_set_access_flags(vma, address, ptep, entry, 1) Then The x86 doesn't have any external MMU info: the kernel page* tables contain all the necessary information.
Caller
NameDescribe
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.