Function report |
Source Code:mm\swap_slots.c |
Create Date:2022-07-28 15:20:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_swap_slot_cache
Proto:static int alloc_swap_slot_cache(unsigned int cpu)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | cpu |
| 132 | If Not slots_ret Then |
| 134 | Return -ENOMEM |
| 137 | mutex_lock( & swap_slots_cache_mutex) |
| 142 | If Not lock_initialized Then |
| 145 | lock_initialized = true |
| 147 | nr = 0 |
| 148 | cur = 0 |
| 149 | n_ret = 0 |
| 158 | slots = NULL |
| 160 | slots_ret = NULL |
| 161 | out : |
| 167 | Return 0 |
| 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 |