函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:47:43 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:The only caller of this function is now suspend routine
函数原型:swp_entry_t get_swap_page_of_type(int type)
返回类型:swp_entry_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| int | type |
| 1082 | si等于swap_type_to_swap_info(type) |
| 1088 | 加自旋锁 |
| 1089 | 如果SWP_USED etc: see above 按位与SWP_WRITEOK则 |
| 1090 | atomic_long_dec( & nr_swap_pages) |
| 1092 | offset等于scan_swap_map(si, 1) |
| 1093 | 如果offset则 |
| 1097 | atomic_long_inc( & nr_swap_pages) |
| 1099 | 自旋锁解锁 |
| 1100 | fail : |
| 1101 | 返回:(swp_entry_t){0} |
| 名称 | 描述 |
|---|---|
| alloc_swapdev_block | alloc_swapdev_block - allocate a swap page and register that it has* been allocated, so that it can be freed in case of an error. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |