函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rb_replace_node

函数原型:void rb_replace_node(struct rb_node *victim, struct rb_node *new, struct rb_root *root)

返回类型:void

参数:

类型参数名称
struct rb_node *victim
struct rb_node *new
struct rb_root *root
556  parent等于rb_parent(victim)
559  new等于victim
562  如果rb_leftrb_set_parent(rb_left, new)
564  如果rb_rightrb_set_parent(rb_right, new)
566  __rb_change_child(victim, new, parent, root)
调用者
名称描述
stable_node_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
alloc_stable_node_chain
__label_replace__label_replace - replace @old with @new in label set*@old: label to remove from label set*@new: label to replace @old with* Requires: labels_set(@old)->lock write_lock* valid ref count be held on @new* Returns: true if @old was in set and replaced by