Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reuse_ksm_page

Proto:bool reuse_ksm_page(struct page *page, struct vm_area_struct *vma, unsigned long address)

Type:bool

Parameter:

TypeParameterName
struct page *page
struct vm_area_struct *vma
unsigned longaddress
2668  If PageSwapCache(page) || Not page_stable_node(page) Then Return false
2671  If Not page_ref_freeze(page, 1) Then Return false
2674  page_move_anon_rmap - move a page to our anon_vma*@page: the page to move to our anon_vma*@vma: the vma the page belongs to* When a page belongs exclusively to one process after a COW event,* that page can be moved into the anon_vma that belongs to just
2675  Our offset within mapping. = linear_page_index(vma, address)
2676  page_ref_unfreeze(page, 1)
2678  Return true