函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_pte

函数原型:static bool map_pte(struct page_vma_mapped_walk *pvmw)

返回类型:bool

参数:

类型参数名称
struct page_vma_mapped_walk *pvmw
18  pte等于pte_offset_map(pmd, address)
19  如果非flags按位与Avoid racy checks 的值则
21  如果非heck whether a pte points to a swap entry 则返回:false
23  否则
46  否则如果非pte_present( * pte)则返回:false
50  ptl等于pte_lockptr(The address space we belong to. , pmd)
51  加自旋锁
52  返回:true
调用者
名称描述
page_vma_mapped_walkpage_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