Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\syscall.c Create Date:2022-07-28 12:54:13
Last Modify:2022-05-19 18:06:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_map_from_imm

Proto:static const struct bpf_map *bpf_map_from_imm(const struct bpf_prog *prog, unsigned long addr, u32 *off, u32 *type)

Type:struct bpf_map

Parameter:

TypeParameterName
const struct bpf_prog *prog
unsigned longaddr
u32 *off
u32 *type
2383  When i < used_map_cnt cycle
2384  map = used_maps[i]
2385  If map == addr Then
2387  Return map
2389  If Not map_direct_value_meta Then Continue
2391  If Not map_direct_value_meta(map, addr, off) Then
2393  Return map
2397  Return NULL
Caller
NameDescribe
bpf_insn_prepare_dump