Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\stackdepot.c Create Date:2022-07-28 07:20:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_stack_slab

Proto:static bool init_stack_slab(void **prealloc)

Type:bool

Parameter:

TypeParameterName
void **prealloc
76  If Not prealloc Then Return false
82  If smp_load_acquire( & next_slab_inited) Then Return true
84  If (stack_slabs[depot_index] == NULL) Then
85  stack_slabs[depot_index] = prealloc
86  * prealloc = NULL
87  Else
89  If depot_index + 1 < STACK_ALLOC_MAX_SLABS Then
91  * prealloc = NULL
97  smp_store_release( & next_slab_inited, 1)
99  Return true
Caller
NameDescribe
depot_alloc_stack
stack_depot_savestack_depot_save - Save a stack trace from an array*@entries: Pointer to storage array*@nr_entries: Size of the storage array*@alloc_flags: Allocation gfp flags* Return: The handle of the stack struct stored in depot