函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:47:51 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__swap_entry_free_locked
函数原型:static unsigned char __swap_entry_free_locked(struct swap_info_struct *p, unsigned long offset, unsigned char usage)
返回类型:unsigned char
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct swap_info_struct * | p | |
| unsigned long | offset | |
| unsigned char | usage |
| 1187 | count与等于Flag page is cached, in first swap_map 的反 |
| 1189 | 如果usage恒等于Flag page is cached, in first swap_map 则 |
| 1192 | 否则如果count恒等于Owned by shmem/tmpfs, in first swap_map 则 |
| 1197 | count等于0 |
| 1198 | 否则如果count按位与See swap_map continuation for full count 的反的值小于等于Max duplication count, in first swap_map 则 |
| 1199 | 如果count恒等于See swap_map continuation for full count 则 |
| 1204 | 否则count自减 |
| 1211 | 返回:usage |
| 名称 | 描述 |
|---|---|
| __swap_entry_free | |
| put_swap_page | Called after dropping swapcache to decrease refcnt to swap entries. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |