| Function report | 
| Source Code: mm\swapfile.c | Create Date:2022-07-28 15:17:45 | 
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:swap_swapcount
Proto:static int swap_swapcount(struct swap_info_struct *si, swp_entry_t entry)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct swap_info_struct * | si | |
| swp_entry_t | entry | 
| 1464 | count = 0 | 
| 1465 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format | 
| 1468 | ci = Determine the locking method in use for this device. Return* swap_cluster_info if SSD-style cluster-based locking is in place. | 
| 1470 | unlock_cluster_or_swap_info(si, ci) | 
| 1471 | Return count | 
| Name | Describe | 
|---|---|
| __swp_swapcount | How many references to @entry are currently swapped out?* This does not give an exact answer when swap count is continued,* but does include the high COUNT_CONTINUED flag to allow for that. | 
| 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 |