Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:stable_node_dup_any

Proto:static struct stable_node *stable_node_dup_any(struct stable_node *stable_node, struct rb_root *root)

Type:struct stable_node

Parameter:

TypeParameterName
struct stable_node *stable_node
struct rb_root *root
1476  If Not is_stable_node_chain(stable_node) Then Return stable_node
1478  If hlist_empty( & hlist) Then
1479  free_stable_node_chain(stable_node, root)
1480  Return NULL
1482  Return hlist_entry(first, typeof( * stable_node), hlist_dup)
Caller
NameDescribe
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.