函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_check_tail_call

函数原型:static int bpf_check_tail_call(const struct bpf_prog *fp)

返回类型:int

参数:

类型参数名称
const struct bpf_prog *fp
1743  aux等于 Auxiliary fields
1746 i小于used_map_cnt循环
1747  map等于used_maps[i]
1750  如果map_type不等于BPF_MAP_TYPE_PROG_ARRAY则继续下一循环
1753  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)
1754  如果非bpf_prog_array_compatible(array, fp)则返回:负EINVAL
1758  返回:0
调用者
名称描述
bpf_prog_select_runtimepf_prog_select_runtime - select exec runtime for BPF program*@fp: bpf_prog populated with internal BPF program*@err: pointer to error variable* Try to JIT eBPF program, if JIT is not available, use interpreter.