函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mc_handle_present_pte

函数原型:static struct page *mc_handle_present_pte(struct vm_area_struct *vma, unsigned long addr, pte_t ptent)

返回类型:struct page

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longaddr
pte_tptent
5177  page等于vm_normal_page -- This function gets the "struct page" associated with a pte.* "Special" mappings do not wish to be associated with a "struct page" (either* it doesn't exist, or it exists but they don't want to touch it). In this
5179  如果非page或非Return true if this page is mapped into pagetables.* For compound page it returns true if any subpage of compound page is mapped.则返回:NULL
5181  如果PageAnon(page)则
5182  如果非flags按位与Types of charges to be moved.的值则返回:NULL
5184  否则
5185  如果非flags按位与MOVE_FILE的值则返回:NULL
5188  如果非Try to grab a ref unless the page has a refcount of zero, return false if* that is the case.* This can be called when MMU is off so it must not access* any of the virtual mappings.则返回:NULL
5191  返回:page
调用者
名称描述
get_mctgt_typeget_mctgt_type - get target type of moving charge*@vma: the vma the pte to be checked belongs*@addr: the address corresponding to the pte to be checked*@ptent: the pte to be checked*@target: the pointer the target page or swap ent will be stored(can be