Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Inline version for rb_erase() use - we want to be able to inline* and eliminate the dummy_rotate callback there

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

Type:void

Parameter:

TypeParameterName
struct rb_node *parent
struct rb_root *root
void (*augment_rotate
230  node = NULL
232  When (true) cycle
240  sibling = rb_right
241  If node != sibling Then
242  If rb_is_red(sibling) Then
261  tmp1 = rb_right
262  If Not tmp1 || rb_is_black(tmp1) Then
342  tmp2 = rb_left
346  If tmp2 Then rb_set_parent(tmp2, parent)
351  Break
352  Else
353  sibling = rb_left
354  If rb_is_red(sibling) Then
365  tmp1 = rb_left
366  If Not tmp1 || rb_is_black(tmp1) Then
395  tmp2 = rb_right
399  If tmp2 Then rb_set_parent(tmp2, parent)
404  Break
Caller
NameDescribe
__rb_erase_colorNon-inline version for rb_erase_augmented() use
rb_erase