函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_vma_mapped.c Create Date:2022-07-27 16:23:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int page_mapped_in_vma(struct page *page, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
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等于startPAGE_SIZEhpage_nr_pages(page)减1的差
269  如果此条件成立可能性小(为编译器优化)(end < Our start address within vm_mm. || start >= The first byte after our end addresswithin vm_mm. )则返回:0
271  address等于两数取大(start, Our start address within vm_mm. )
272  如果非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则返回:0
274  page_vma_mapped_walk_done( & pvmw)
275  返回:1
调用者
名称描述
collect_procs_anonCollect processes when the error hit an anonymous page.