函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_mergeable_page

函数原型:static struct page *get_mergeable_page(struct rmap_item *rmap_item)

返回类型:struct page

参数:

类型参数名称
struct rmap_item *rmap_item
554  mm等于mm
555  addr等于 + low bits used for flags below
559  lock for reading
560  vma等于find_mergeable_vma(mm, addr)
561  如果非vma则转到:out
564  page等于follow_page(vma, addr, do get_page on page )
565  如果是错误或空则转到:out
567  如果PageAnon(page)则
568  flush_anon_page(vma, page, addr)
569  flush_dcache_page(page)
570  否则
571  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
572  out :
573  page = NULL
575  lease a read lock
576  返回:page
调用者
名称描述
unstable_tree_search_insertstable_tree_search_insert - search for identical page,* else insert rmap_item into the unstable tree.* This function searches for a page in the unstable tree identical to the* page currently being scanned; and if no identical page is found in the