函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\rbtree.c Create Date:2022-07-27 07:09:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Helper function for rotations:* - old's parent and color get assigned to new* - old gets assigned new as a parent and 'color' as a color.

函数原型:static inline void __rb_rotate_set_parents(struct rb_node *old, struct rb_node *new, struct rb_root *root, int color)

返回类型:void

参数:

类型参数名称
struct rb_node *old
struct rb_node *new
struct rb_root *root
intcolor
78  parent等于rb_parent(old)
79  __rb_parent_color等于__rb_parent_color
80  rb_set_parent_color(old, new, color)
81  __rb_change_child(old, new, parent, root)
调用者
名称描述
__rb_insert
____rb_erase_colorInline version for rb_erase() use - we want to be able to inline* and eliminate the dummy_rotate callback there