Function report |
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 activity | Download SCCT | Chinese |
Name:init_stack_slab
Proto:static bool init_stack_slab(void **prealloc)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| 90 | stack_slabs[depot_index + 1] = prealloc |
| 91 | * prealloc = NULL |
| 97 | smp_store_release( & next_slab_inited, 1) |
| 99 | Return true |
| Name | Describe |
|---|---|
| depot_alloc_stack | |
| stack_depot_save | stack_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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |