函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cgroup_storage_lookup

函数原型:static struct bpf_cgroup_storage *cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, struct bpf_cgroup_storage_key *key, bool locked)

返回类型:struct bpf_cgroup_storage

参数:

类型参数名称
struct bpf_cgroup_storage_map *map
struct bpf_cgroup_storage_key *key
boollocked
52  root等于root
55  如果非lockedspin_lock_bh( & lock)
58  node等于rb_node
59 node循环
62  storage等于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.(node, structbpf_cgroup_storage, node)
65  :bpf_cgroup_storage_key_cmp(key, & key)恒等于负1
66  node等于rb_left
67  退出
68  :bpf_cgroup_storage_key_cmp(key, & key)恒等于1
69  node等于rb_right
70  退出
71  默认
72  如果非lockedspin_unlock_bh( & lock)
74  返回:storage
78  如果非lockedspin_unlock_bh( & lock)
81  返回:NULL
调用者
名称描述
cgroup_storage_lookup_elem
cgroup_storage_update_elem
bpf_percpu_cgroup_storage_copy
bpf_percpu_cgroup_storage_update
cgroup_storage_get_next_key
cgroup_storage_seq_show_elem