函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:break_cow

函数原型:static void break_cow(struct rmap_item *rmap_item)

返回类型:void

参数:

类型参数名称
struct rmap_item *rmap_item
535  mm等于mm
536  addr等于 + low bits used for flags below
543  put_anon_vma( when stable )
545  lock for reading
546  vma等于find_mergeable_vma(mm, addr)
547  如果vmaWe use break_ksm to break COW on a ksm page: it's a stripped down* if (get_user_pages(addr, 1, 1, 1, &page, NULL) == 1)* put_page(page);* but taking great care only to touch a ksm page, in a VM_MERGEABLE vma,
549  lease a read lock
调用者
名称描述
try_to_merge_two_pagesry_to_merge_two_pages - take two identical pages and prepare them* to be merged into one page
cmp_and_merge_pagemp_and_merge_page - first see if page can be merged into the stable tree;* if not, compare checksum to previous and if it's the same, see if page can* be inserted into the unstable tree, or merged with a page already there and