Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_referenced_one

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

Type:bool

Parameter:

TypeParameterName
struct page *page
struct vm_area_struct *vma
unsigned longaddress
void *arg page_referenced_arg will be passed
777  pra = page_referenced_arg will be passed
778  struct page_vma_mapped_walk pvmw = {page = page, vma = vma, address = address, }
783  referenced = 0
785  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
786  address = address
788  If Flags, see mm.h. & VM_LOCKED Then
790  vm_flags |= VM_LOCKED
791  Return false
794  If pte Then
812  Else
814  WARN_ON_ONCE(1)
817  mapcount--
820  If referenced Then clear_page_idle(page)
822  If test_and_clear_page_young(page) Then referenced++
825  If referenced Then
826  referenced++
827  vm_flags |= Flags, see mm.h.
830  If Not mapcount Then Return false
833  Return true