Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:At what user virtual address is page expected in vma?* Caller should check the page is actually part of the vma.

Proto:unsigned long page_address_in_vma(struct page *page, struct vm_area_struct *vma)

Type:unsigned long

Parameter:

TypeParameterName
struct page *page
struct vm_area_struct *vma
711  If PageAnon(page) Then
712  page__anon_vma = page_anon_vma(page)
717  If Not Serialized by page_table_lock || Not page__anon_vma || root != Root of this anon_vma tree Then Return -EFAULT
720  Else if See page-flags.h for PAGE_MAPPING_FLAGS Then
721  If Not File we map to (can be NULL). || f_mapping != See page-flags.h for PAGE_MAPPING_FLAGS Then Return -EFAULT
723  Else Return -EFAULT
725  address = At what user virtual address is page expected in @vma?
726  If Value for the false possibility is greater at compile time(address < Our start address within vm_mm. || address >= The first byte after our end addresswithin vm_mm. ) Then Return -EFAULT
728  Return address
Caller
NameDescribe
new_pageAllocate a new page for page migration based on vma policy
write_protect_page
replace_pageplace_page - replace page in vma by new ksm page*@vma: vma that holds the pte pointing to page*@page: the page we are replacing by kpage*@kpage: the ksm page we replace page by*@orig_pte: the original value of the pte
add_to_killSchedule a process for later kill.* Uses GFP_ATOMIC allocations to avoid potential recursions in the VM.