Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:stable_node_chain_add_dup

Proto:static inline void stable_node_chain_add_dup(struct stable_node *dup, struct stable_node *chain)

Type:void

Parameter:

TypeParameterName
struct stable_node *dup
struct stable_node *chain
351  VM_BUG_ON(is_stable_node_dup(dup))
352  when listed for migration = STABLE_NODE_DUP_HEAD
353  VM_BUG_ON(!is_stable_node_chain(chain))
354  hlist_add_head( & hlist_dup, & hlist)
355  The number of stable_node dups linked to the stable_node chains ++
Caller
NameDescribe
alloc_stable_node_chain
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.