函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:env_resolve_init

函数原型:static int env_resolve_init(struct btf_verifier_env *env)

返回类型:int

参数:

类型参数名称
struct btf_verifier_env *env
921  btf等于btf
922  nr_types等于nr_types
923  u32 * resolved_sizes = NULL
924  u32 * resolved_ids = NULL
925  u8 * visit_states = NULL
928  resolved_sizes等于kvcalloc(nr_types + 1, resolved_sizes的长度, GFP_KERNEL | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)
930  如果非resolved_sizes则转到:nomem
933  resolved_ids等于kvcalloc(nr_types + 1, resolved_ids的长度, GFP_KERNEL | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)
935  如果非resolved_ids则转到:nomem
938  visit_states等于kvcalloc(nr_types + 1, visit_states的长度, GFP_KERNEL | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)
940  如果非visit_states则转到:nomem
943  resolved_sizes等于resolved_sizes
944  resolved_ids等于resolved_ids
945  visit_states等于visit_states
947  返回:0
949  nomem :
950  kvfree(resolved_sizes)
951  kvfree(resolved_ids)
952  kvfree(visit_states)
953  返回:负ENOMEM
调用者
名称描述
btf_check_all_types