Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\vm86_32.c Create Date:2022-07-28 08:41:32
Last Modify:2022-05-22 10:11:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mark_screen_rdonly

Proto:static void mark_screen_rdonly(struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
175  lock for writing
176  pgd = a shortcut to get a pgd_t in a given mm(mm, 0xA0000)
177  If pgd_none_or_clear_bad(pgd) Then Go to out
179  p4d = p4d_offset(pgd, 0xA0000)
180  If p4d_none_or_clear_bad(p4d) Then Go to out
182  pud = pud_offset(p4d, 0xA0000)
183  If pud_none_or_clear_bad(pud) Then Go to out
185  pmd = pmd_offset(pud, 0xA0000)
187  If pmd_trans_huge( * pmd) Then
188  vma = Look up the first VMA which satisfies addr < vm_end, NULL if none.
189  split_huge_pmd(vma, pmd, 0xA0000)
191  If pmd_none_or_clear_bad(pmd) Then Go to out
193  pte = pte_offset_map_lock(mm, pmd, 0xA0000, & ptl)
194  When i < 32 cycle
195  If pte_present( * pte) Then set_pte(pte, pte_wrprotect( * pte))
197  pte++
199  pte_unmap_unlock(pte, ptl)
200  out :
201  lease a write lock
202  flush_tlb_mm_range(mm, 0xA0000, 0xA0000 + 32 * PAGE_SIZE, PAGE_SHIFT determines the page size , false)
Caller
NameDescribe
do_sys_vm86