Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:insert_augmented_cached

Proto:static void insert_augmented_cached(struct test_node *node, struct rb_root_cached *root)

Type:void

Parameter:

TypeParameterName
struct test_node *node
struct rb_root_cached *root
112  struct rb_node * * new = & rb_node, * rb_parent = NULL
113  key = key
114  val = following fields used for testing augmented rbtree functionality
116  bool leftmost = true
118  When new cycle
119  rb_parent = new
120  parent = rb_entry(rb_parent, structtest_node, rb)
121  If augmented < val Then augmented = val
123  If key < key Then new = rb_left
125  Else
126  new = rb_right
127  leftmost = false
131  augmented = val
132  rb_link_node( & rb, rb_parent, new)
133  rb_insert_augmented_cached( & rb, root, leftmost, & augment_callbacks)
Caller
NameDescribe
rbtree_test_init