函数逻辑报告 |
Source Code:include\linux\rbtree_augmented.h |
Create Date:2022-07-27 07:09:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__rb_erase_augmented
函数原型:static __always_inline struct rb_node *__rb_erase_augmented(struct rb_node *node, struct rb_root *root, const struct rb_augment_callbacks *augment)
返回类型:struct rb_node
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct rb_node * | node | |
| struct rb_root * | root | |
| const struct rb_augment_callbacks * | augment |
| 206 | 如果非tmp则 |
| 214 | pc等于__rb_parent_color |
| 215 | parent等于__rb_parent(pc) |
| 216 | __rb_change_child(node, child, parent, root) |
| 217 | 如果child则 |
| 218 | __rb_parent_color等于pc |
| 219 | rebalance = NULL |
| 220 | 否则rebalance = __rb_is_black(pc) ? parent : NULL |
| 223 | 否则如果非child则 |
| 230 | 否则 |
| 234 | 如果非tmp则 |
| 248 | 否则 |
| 263 | 循环 |
| 269 | WRITE_ONCE(rb_left, child2) |
| 270 | WRITE_ONCE(rb_right, child) |
| 271 | rb_set_parent(child, successor) |
| 278 | WRITE_ONCE(rb_left, tmp) |
| 279 | rb_set_parent(tmp, successor) |
| 281 | pc等于__rb_parent_color |
| 282 | tmp等于__rb_parent(pc) |
| 283 | __rb_change_child(node, successor, tmp, root) |
| 285 | 如果child2则 |
| 286 | rb_set_parent_color(child2, parent, RB_BLACK) |
| 287 | rebalance = NULL |
| 288 | 否则 |
| 289 | rebalance = rb_is_black(successor) ? parent : NULL |
| 291 | __rb_parent_color等于pc |
| 296 | 返回:rebalance |
| 名称 | 描述 |
|---|---|
| rb_erase | |
| rb_erase_augmented |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |