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:21
Last Modify:2020-03-17 19:44:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_map_elt_alloc

Proto:static struct tracing_map_elt *tracing_map_elt_alloc(struct tracing_map *map)

Type:struct tracing_map_elt

Parameter:

TypeParameterName
struct tracing_map *map
403  err = 0
405  elt = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
406  If Not elt Then Return ERR_PTR( - ENOMEM)
409  map = map
411  key = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
412  If Not key Then
413  err = -ENOMEM
414  Go to free
417  fields = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
418  If Not fields Then
419  err = -ENOMEM
420  Go to free
423  vars = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
424  If Not vars Then
425  err = -ENOMEM
426  Go to free
429  var_set = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
430  If Not var_set Then
431  err = -ENOMEM
432  Go to free
435  tracing_map_elt_init_fields(elt)
437  If ops && elt_alloc Then
438  err = elt_alloc(elt)
439  If err Then Go to free
442  Return elt
443  free :
444  tracing_map_elt_free(elt)
446  Return ERR_PTR(err)
Caller
NameDescribe
tracing_map_alloc_elts