Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:insert_cached

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

Type:void

Parameter:

TypeParameterName
struct test_node *node
struct rb_root_cached *root
51  struct rb_node * * new = & rb_node, * parent = NULL
52  key = key
53  bool leftmost = true
55  When new cycle
56  parent = new
57  if (key < ({
57  __mptr = parent
57  Do
57  When 0 cycle
57  })->key)
58  new = rb_left
59  Else
60  new = rb_right
61  leftmost = false
65  rb_link_node( & rb, parent, new)
66  rb_insert_color_cached( & rb, root, leftmost)
Caller
NameDescribe
rbtree_test_init