Function report |
Source Code:mm\swap_slots.c |
Create Date:2022-07-28 15:20:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:drain_slots_cache_cpu
Proto:static void drain_slots_cache_cpu(unsigned int cpu, unsigned int type, bool free_slots)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | cpu | |
unsigned int | type | |
bool | free_slots |
174 | swp_entry_t * slots = NULL |
177 | If type & SLOTS_CACHE && slots Then |
178 | mutex_lock( & protects slots, nr, cur ) |
179 | swapcache_free_entries(slots + cur, nr) |
180 | cur = 0 |
181 | nr = 0 |
182 | If free_slots && slots Then |
184 | slots = NULL |
188 | If type & SLOTS_CACHE_RET && slots_ret Then |
189 | spin_lock_irq( & protects slots_ret, n_ret ) |
191 | n_ret = 0 |
192 | If free_slots && slots_ret Then |
196 | spin_unlock_irq( & protects slots_ret, n_ret ) |
Name | Describe |
---|---|
__drain_swap_slots_cache | |
free_slot_cache |
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 |