函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_referenced_one

函数原型:static bool page_referenced_one(struct page *page, struct vm_area_struct *vma, unsigned long address, void *arg)

返回类型:bool

参数:

类型参数名称
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 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循环
786  address等于address
788  如果Flags, see mm.h. 按位与VM_LOCKED
790  vm_flags或等于VM_LOCKED
791  返回:false
794  如果pte
812  否则
814  WARN_ON_ONCE(1)
817  mapcount自减
820  如果referencedclear_page_idle(page)
822  如果test_and_clear_page_young(page)则referenced自加
825  如果referenced
826  referenced自加
827  vm_flags或等于Flags, see mm.h.
830  如果非mapcount则返回:false
833  返回:true