| 函数逻辑报告 | 
| Source Code: mm\frontswap.c | Create Date:2022-07-27 16:52:06 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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
函数原型:void frontswap_shrink(unsigned long target_pages)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| unsigned long | target_pages | 
| 448 | pages_to_unuse等于0 | 
| 456 | 加自旋锁 | 
| 457 | ret等于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. | 
| 458 | 自旋锁解锁 | 
| 459 | 如果ret恒等于0则If the boolean frontswap is true, only unuse pages_to_unuse pages;* pages_to_unuse==0 means all pages; ignored if frontswap is false | 
| 461 | 返回 | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |