Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_storage_lookup

Proto:static struct bpf_cgroup_storage *cgroup_storage_lookup(struct bpf_cgroup_storage_map *map, struct bpf_cgroup_storage_key *key, bool locked)

Type:struct bpf_cgroup_storage

Parameter:

TypeParameterName
struct bpf_cgroup_storage_map *map
struct bpf_cgroup_storage_key *key
boollocked
52  root = root
55  If Not locked Then spin_lock_bh( & lock)
58  node = rb_node
59  When node cycle
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  Case bpf_cgroup_storage_key_cmp(key, & key) == -1
66  node = rb_left
67  Break
68  Case bpf_cgroup_storage_key_cmp(key, & key) == 1
69  node = rb_right
70  Break
71  Default
72  If Not locked Then spin_unlock_bh( & lock)
74  Return storage
78  If Not locked Then spin_unlock_bh( & lock)
81  Return NULL
Caller
NameDescribe
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