Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_mkclean_one

Proto:static bool page_mkclean_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
907  struct page_vma_mapped_walk pvmw = {page = page, vma = vma, address = address, flags = Avoid racy checks , }
914  cleaned = arg
920  mmu_notifier_range_init( & range, MMU_NOTIFY_PROTECTION_PAGE, 0, vma, The address space we belong to. , address, min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(The first byte after our end addresswithin vm_mm. , address + Returns the number of bytes in this potentially compound page. ))
923  mmu_notifier_invalidate_range_start( & range)
925  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
926  ret = 0
928  address = address
929  If pte Then
931  pte = pte
941  ret = 1
942  Else
958  WARN_ON_ONCE(1)
969  If ret Then cleaned++
973  mmu_notifier_invalidate_range_end( & range)
975  Return true