函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_stack_slab

函数原型:static bool init_stack_slab(void **prealloc)

返回类型:bool

参数:

类型参数名称
void **prealloc
76  如果非prealloc则返回:false
82  如果smp_load_acquire( & next_slab_inited)则返回:true
84  如果(stack_slabs[depot_index] == NULL)则
85  stack_slabs[depot_index]等于prealloc
86  * prealloc = NULL
87  否则
89  如果depot_index加1小于STACK_ALLOC_MAX_SLABS
91  * prealloc = NULL
97  smp_store_release( & next_slab_inited, 1)
99  返回:true
调用者
名称描述
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