Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__rb_insert

Proto:static __always_inline void __rb_insert(struct rb_node *node, struct rb_root *root, void (*augment_rotate)(struct rb_node *old, struct rb_node *new))

Type:void

Parameter:

TypeParameterName
struct rb_node *node
struct rb_root *root
void (*augment_rotate
88  parent = rb_red_parent(node)
90  When (true) cycle
101  Break
110  If rb_is_black(parent) Then Break
113  gparent = rb_red_parent(parent)
115  tmp = rb_right
116  If parent != tmp Then
117  If tmp && rb_is_red(tmp) Then
139  tmp = rb_right
140  If node == tmp Then
182  Break
183  Else
184  tmp = rb_left
185  If tmp && rb_is_red(tmp) Then
195  tmp = rb_left
196  If node == tmp Then
217  Break
Caller
NameDescribe
rb_insert_color
__rb_insert_augmentedAugmented rbtree manipulation functions.* This instantiates the same __always_inline functions as in the non-augmented* case, but this time with user-defined callbacks.