函数逻辑报告 |
Source Code:mm\frontswap.c |
Create Date:2022-07-27 16:52:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__frontswap_unuse_pages
函数原型:static int __frontswap_unuse_pages(unsigned long total, unsigned long *unused, int *swapid)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned long | total | |
| unsigned long * | unused | |
| int * | swapid |
| 386 | struct swap_info_struct * si = NULL |
| 389 | pages等于0, pages_to_unuse等于0 |
| 391 | assert_spin_locked( & swap_lock) |
| 396 | 否则 |
| 397 | pages等于si_frontswap_pages |
| 398 | pages_to_unuse等于0 |
| 401 | 如果security_vm_enough_memory_mm(mm, pages)则 |
| 405 | vm_unacct_memory(pages) |
| 406 | unused等于pages_to_unuse |
| 408 | ret等于0 |
| 409 | 退出 |
| 412 | 返回:ret |
| 名称 | 描述 |
|---|---|
| __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. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |