Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\rbtree_augmented.h Create Date:2022-07-28 06:12:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__rb_change_child

Proto:static inline void __rb_change_child(struct rb_node *old, struct rb_node *new, struct rb_node *parent, struct rb_root *root)

Type:void

Parameter:

TypeParameterName
struct rb_node *old
struct rb_node *new
struct rb_node *parent
struct rb_root *root
172  If parent Then
173  If rb_left == old Then WRITE_ONCE(rb_left, new)
175  Else WRITE_ONCE(rb_right, new)
177  Else WRITE_ONCE(rb_node, new)
Caller
NameDescribe
__rb_rotate_set_parentsHelper function for rotations:* - old's parent and color get assigned to new* - old gets assigned new as a parent and 'color' as a color.
rb_replace_node