函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reuse_ksm_page

函数原型:bool reuse_ksm_page(struct page *page, struct vm_area_struct *vma, unsigned long address)

返回类型:bool

参数:

类型参数名称
struct page *page
struct vm_area_struct *vma
unsigned longaddress
2668  如果PageSwapCache(page)或非page_stable_node(page)则返回:false
2671  如果非page_ref_freeze(page, 1)则返回: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  返回:true
调用者
名称描述
do_wp_pageThis routine handles present pages, when users try to write* to a shared page. It is done by copying the page to a new address* and decrementing the shared-page counter for the old page.* Note that this routine assumes that the protection checks have been