函数逻辑报告 |
Source Code:mm\frontswap.c |
Create Date:2022-07-27 16:52:05 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static int __frontswap_shrink(unsigned long target_pages, unsigned long *pages_to_unuse, int *type)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | target_pages | |
unsigned long * | pages_to_unuse | |
int * | type |
424 | total_pages等于0 |
426 | assert_spin_locked( & swap_lock) |
429 | 如果total_pages小于等于target_pages则 |
431 | pages_to_unuse等于0 |
432 | 返回:1 |
名称 | 描述 |
---|---|
frontswap_shrink | Frontswap, like a true swap device, may unnecessarily retain pages* under certain circumstances; "shrink" frontswap is essentially a* "partial swapoff" and works by calling try_to_unuse to attempt to* unuse enough frontswap pages to attempt to -- subject |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |