Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mc_handle_present_pte

Proto:static struct page *mc_handle_present_pte(struct vm_area_struct *vma, unsigned long addr, pte_t ptent)

Type:struct page

Parameter:

TypeParameterName
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  If Not page || Not Return true if this page is mapped into pagetables.* For compound page it returns true if any subpage of compound page is mapped. Then Return NULL
5181  If PageAnon(page) Then
5182  If Not (flags & Types of charges to be moved.) Then Return NULL
5184  Else
5185  If Not (flags & MOVE_FILE) Then Return NULL
5188  If Not 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. Then Return NULL
5191  Return page
Caller
NameDescribe
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