Function report |
Source Code:mm\swap_slots.c |
Create Date:2022-07-28 15:20:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:free_swap_slot
Proto:int free_swap_slot(swp_entry_t entry)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| swp_entry_t | entry |
| 282 | cache = raw_cpu_ptr( & swp_slots) |
| 283 | If Value is more likely to compile time(use_swap_slot_cache && slots_ret) Then |
| 284 | spin_lock_irq( & protects slots_ret, n_ret ) |
| 286 | If Not use_swap_slot_cache || Not slots_ret Then |
| 287 | spin_unlock_irq( & protects slots_ret, n_ret ) |
| 288 | Go to direct_free |
| 290 | If n_ret >= SWAP_SLOTS_CACHE_SIZE Then |
| 298 | n_ret = 0 |
| 301 | spin_unlock_irq( & protects slots_ret, n_ret ) |
| 302 | Else |
| 303 | direct_free : |
| 304 | swapcache_free_entries( & entry, 1) |
| 307 | Return 0 |
| Name | Describe |
|---|---|
| put_swap_page | Called after dropping swapcache to decrease refcnt to swap entries. |
| 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 |