Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\tracing_map.c Create Date:2022-07-28 12:07:24
Last Modify:2020-03-17 19:44:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_map_alloc_elts

Proto:static int tracing_map_alloc_elts(struct tracing_map *map)

Type:int

Parameter:

TypeParameterName
struct tracing_map *map
484  elts = tracing_map_array_alloc(max_elts, size of * )
486  If Not elts Then Return -ENOMEM
489  When i < max_elts cycle
490  *TRACING_MAP_ELT(elts, i) = tracing_map_elt_alloc(map)
491  If IS_ERR( * (TRACING_MAP_ELT(elts, i))) Then
492  * (TRACING_MAP_ELT(elts, i)) = NULL
495  Return -ENOMEM
499  Return 0
Caller
NameDescribe
tracing_map_initracing_map_init - Allocate and clear a map's tracing_map_elts*@map: The tracing_map to initialize* Allocates a clears a pool of tracing_map_elts equal to the* user-specified size of 2 ** map_bits (internally maintained as