Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called from syscall or from eBPF program

Proto:static void *array_map_lookup_elem(struct bpf_map *map, void *key)

Type:void

Parameter:

TypeParameterName
struct bpf_map *map
void *key
171  array = 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.(map, structbpf_array, map)
172  index = key
174  If Value for the false possibility is greater at compile time(index >= max_entries) Then Return NULL
177  Return value + elem_size * (index & index_mask)
Caller
NameDescribe
array_map_seq_show_elem
bpf_fd_array_map_lookup_elemly called from syscall
prog_array_map_seq_show_elem
array_of_map_lookup_elem