函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stable_node_dup_any

函数原型:static struct stable_node *stable_node_dup_any(struct stable_node *stable_node, struct rb_root *root)

返回类型:struct stable_node

参数:

类型参数名称
struct stable_node *stable_node
struct rb_root *root
1476  如果非is_stable_node_chain(stable_node)则返回:stable_node
1478  如果hlist_empty( & hlist)则
1479  free_stable_node_chain(stable_node, root)
1480  返回:NULL
1482  返回:hlist_entry(first, typeof( * stable_node), hlist_dup)
调用者
名称描述
stable_tree_searchstable_tree_search - search for page inside the stable tree* This function checks if there is a page inside the stable tree* with identical content to the page that we are scanning right now
stable_tree_insertstable_tree_insert - insert stable tree node pointing to new ksm page* into the stable tree.* This function returns the stable tree node just allocated on success,* NULL otherwise.