Function report |
Source Code:mm\swap_slots.c |
Create Date:2022-07-28 15:21:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_swap_page
Proto:swp_entry_t get_swap_page(struct page *page)
Type:swp_entry_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page |
| 315 | val = 0 |
| 318 | If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_THP_SWAP) Then get_swap_pages(1, & entry, HPAGE_PMD_NR) |
| 320 | Go to out |
| 332 | cache = raw_cpu_ptr( & swp_slots) |
| 334 | If Value is more likely to compile time(check_cache_active() && slots) Then |
| 335 | mutex_lock( & protects slots, nr, cur ) |
| 336 | If slots Then |
| 337 | repeat : |
| 338 | If nr Then |
| 343 | Else |
| 344 | If alled with swap slot cache's alloc lock held Then Go to repeat |
| 353 | get_swap_pages(1, & entry, 1) |
| 354 | out : |
| 355 | If mem_cgroup_try_charge_swap(page, entry) Then |
| 359 | Return entry |
| 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 |