函数逻辑报告 |
Source Code:mm\frontswap.c |
Create Date:2022-07-27 16:52:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__frontswap_curr_pages
函数原型:static unsigned long __frontswap_curr_pages(void)
返回类型:unsigned long
参数:无
| 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 | 返回:totalpages |
| 名称 | 描述 |
|---|---|
| __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. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |