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:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cgroup_storage_lookup_elem

Proto:static void *cgroup_storage_lookup_elem(struct bpf_map *_map, void *_key)

Type:void

Parameter:

TypeParameterName
struct bpf_map *_map
void *_key
116  map = map_to_storage(_map)
117  key = _key
120  storage = cgroup_storage_lookup(map, key, false)
121  If Not storage Then Return NULL
124  Return & ({
124  union{typeof(buf__val;char __c[1];}__u
124  If 1 Then __read_once_size( & (buf), __c, size of buf )
124  Else __read_once_size_nocheck( & (buf), __c, size of buf )
124  Do
124  When 0 cycle
124  __val
124  })->data[0]