Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:env_resolve_init

Proto:static int env_resolve_init(struct btf_verifier_env *env)

Type:int

Parameter:

TypeParameterName
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, size of 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  If Not resolved_sizes Then Go to nomem
933  resolved_ids = kvcalloc(nr_types + 1, size of 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  If Not resolved_ids Then Go to nomem
938  visit_states = kvcalloc(nr_types + 1, size of 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  If Not visit_states Then Go to nomem
943  resolved_sizes = resolved_sizes
944  resolved_ids = resolved_ids
945  visit_states = visit_states
947  Return 0
949  nomem :
950  kvfree(resolved_sizes)
951  kvfree(resolved_ids)
952  kvfree(visit_states)
953  Return -ENOMEM
Caller
NameDescribe
btf_check_all_types