Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:18:07 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Free the swap entry like above, but also try to* free the page cache entry if it is the last user.
Proto:int free_swap_and_cache(swp_entry_t entry)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| swp_entry_t | entry |
| 1737 | If non_swap_entry(entry) Then Return 1 |
| 1740 | p = _swap_info_get(entry) |
| 1741 | If p Then |
| 1742 | count = __swap_entry_free(p, entry, 1) |
| 1743 | If count == Flag page is cached, in first swap_map && Not swap_page_trans_huge_swapped(p, entry) Then rns 1 if swap entry is freed |
| 1748 | Return p != NULL |
| Name | Describe |
|---|---|
| zap_pte_range | |
| madvise_free_pte_range |
| 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 |