Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:17:32 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swap_entry_free
Proto:static void swap_entry_free(struct swap_info_struct *p, swp_entry_t entry)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct swap_info_struct * | p | |
| swp_entry_t | entry |
| 1295 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
| 1298 | ci = lock_cluster(p, offset) |
| 1299 | count = vmalloc'ed array of usage counts [offset] |
| 1301 | vmalloc'ed array of usage counts [offset] = 0 |
| 1303 | unlock_cluster(ci) |
| 1305 | mem_cgroup_uncharge_swap(entry, 1) |
| 1306 | swap_range_free(p, offset, 1) |
| Name | Describe |
|---|---|
| swapcache_free_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 |