Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_idle_clear_pte_refs_one

Proto:static bool page_idle_clear_pte_refs_one(struct page *page, struct vm_area_struct *vma, unsigned long addr, void *arg)

Type:bool

Parameter:

TypeParameterName
struct page *page
struct vm_area_struct *vma
unsigned longaddr
void *arg
58  struct page_vma_mapped_walk pvmw = {page = page, vma = vma, address = addr, }
63  bool referenced = false
65  When page_vma_mapped_walk - check if @pvmw->page is mapped in @pvmw->vma at*@pvmw->address*@pvmw: pointer to struct page_vma_mapped_walk. page, vma, address and flags* must be set. pmd, pte and ptl must be NULL.* Returns true if the page is mapped in the vma cycle
66  addr = address
67  If pte Then
72  If ptep_clear_young_notify(vma, addr, pte) Then referenced = true
75  If pmdp_clear_young_notify(vma, addr, pmd) Then referenced = true
77  Else
79  WARN_ON_ONCE(1)
83  If referenced Then
84  clear_page_idle(page)
90  set_page_young(page)
92  Return true