函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_storage_insert

函数原型:static int cgroup_storage_insert(struct bpf_cgroup_storage_map *map, struct bpf_cgroup_storage *storage)

返回类型:int

参数:

类型参数名称
struct bpf_cgroup_storage_map *map
struct bpf_cgroup_storage *storage
87  root等于root
88  struct rb_node * * new = & (rb_node), * parent = NULL
90 new循环
93  this等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.( * new, structbpf_cgroup_storage, node)
95  parent等于new
97  :bpf_cgroup_storage_key_cmp( & key, & key)恒等于负1
98  new等于rb_left的地址
99  退出
100  :bpf_cgroup_storage_key_cmp( & key, & key)恒等于1
101  new等于rb_right的地址
102  退出
103  默认
104  返回:负EEXIST
108  rb_link_node( & node, parent, new)
109  rb_insert_color( & node, root)
111  返回:0
调用者
名称描述
bpf_cgroup_storage_link