Function report | 
Source Code:mm\swapfile.c | 
Create Date:2022-07-28 15:17:31 | 
| 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 unsigned char __swap_entry_free(struct swap_info_struct *p, swp_entry_t entry, unsigned char usage)
Type:unsigned char
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct swap_info_struct * | p | |
| swp_entry_t | entry | |
| unsigned char | usage | 
| 1281 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format | 
| 1283 | ci = Determine the locking method in use for this device. Return* swap_cluster_info if SSD-style cluster-based locking is in place. | 
| 1284 | usage = __swap_entry_free_locked(p, offset, usage) | 
| 1285 | unlock_cluster_or_swap_info(p, ci) | 
| 1286 | If Not usage Then free_swap_slot(entry) | 
| 1289 | Return usage | 
| Name | Describe | 
|---|---|
| swap_free | Caller has made sure that the swap device corresponding to entry* is still around or has not been recycled. | 
| free_swap_and_cache | Free the swap entry like above, but also try to* free the page cache entry if it is the last user. | 
| 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  |