Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_mapped_in_vma - check whether a page is really mapped in a VMA*@page: the page to test*@vma: the VMA to test* Returns 1 if the page is mapped into the page tables of the VMA, 0* if the page is not mapped into the page tables of this VMA. Only

Proto:int page_mapped_in_vma(struct page *page, struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct page *page
struct vm_area_struct *vma
259  struct page_vma_mapped_walk pvmw = {page = page, vma = vma, flags = Avoid racy checks , }
266  start = At what user virtual address is page expected in @vma?
267  end = start + PAGE_SIZE * (hpage_nr_pages(page) - 1)
269  If Value for the false possibility is greater at compile time(end < Our start address within vm_mm. || start >= The first byte after our end addresswithin vm_mm. ) Then Return 0
271  address = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(start, Our start address within vm_mm. )
272  If Not 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 Then Return 0
274  page_vma_mapped_walk_done( & pvmw)
275  Return 1
Caller
NameDescribe
collect_procs_anonCollect processes when the error hit an anonymous page.