Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_datasec_resolve

Proto:static int btf_datasec_resolve(struct btf_verifier_env *env, const struct resolve_vertex *v)

Type:int

Parameter:

TypeParameterName
struct btf_verifier_env *env
const struct resolve_vertex *v
2794  btf = btf
2798  var_type_id = type , type_size = 0
2799  var_type = btf_type_by_id(btf, var_type_id)
2801  If Not var_type || Not btf_type_is_var(var_type) Then
2802  btf_verifier_log_vsi(env, t, vsi, "Not a VAR kind member")
2804  Return -EINVAL
2807  If Not env_type_is_resolve_sink(env, var_type) && Not env_type_is_resolved(env, var_type_id) Then
2809  env_stack_set_next_member(env, i + 1)
2810  Return env_stack_push(env, var_type, var_type_id)
2813  type_id = type
2814  If Not btf_type_id_size(btf, & type_id, & type_size) Then
2815  btf_verifier_log_vsi(env, t, vsi, "Invalid type")
2816  Return -EINVAL
2819  If size < type_size Then
2820  btf_verifier_log_vsi(env, t, vsi, "Invalid size")
2821  Return -EINVAL
2825  env_stack_pop_resolved(env, 0, 0)
2826  Return 0