| Function report | 
| Source Code: mm\frontswap.c | Create Date:2022-07-28 15:21:30 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__frontswap_curr_pages
Proto:static unsigned long __frontswap_curr_pages(void)
Type:unsigned long
Parameter:Nothing
| 373 | totalpages = 0 | 
| 374 | struct swap_info_struct * si = NULL | 
| 376 | assert_spin_locked( & swap_lock) | 
| 378 | totalpages += atomic_read( & swap pages in-use counter ) | 
| 379 | Return totalpages | 
| Name | Describe | 
|---|---|
| __frontswap_shrink | Used to check if it's necessory and feasible to unuse pages.* Return 1 when nothing to do, 0 when need to shink pages,* error code when there is an error. | 
| frontswap_curr_pages | Count and return the number of frontswap pages across all* swap devices. This is exported so that backend drivers can* determine current usage without reading debugfs. | 
| 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 |