函数逻辑报告 |
Source Code:mm\frontswap.c |
Create Date:2022-07-27 16:51:47 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Register operations for frontswap
函数原型:void frontswap_register_ops(struct frontswap_ops *ops)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct frontswap_ops * | ops |
| 115 | DECLARE_BITMAP(a, MAX_SWAPFILES) |
| 116 | DECLARE_BITMAP(b, MAX_SWAPFILES) |
| 120 | bitmap_zero(a, MAX_SWAPFILES) |
| 121 | bitmap_zero(b, MAX_SWAPFILES) |
| 123 | 加自旋锁 |
| 125 | 如果非WARN_ON(!swap in-use, one bit per page )则设置内存位 |
| 128 | 自旋锁解锁 |
| 131 | for_each_set_bit(i, a, MAX_SWAPFILES) |
| 139 | 循环 |
| 145 | 加自旋锁 |
| 150 | 自旋锁解锁 |
| 158 | 如果此条件成立可能性小(为编译器优化)(!bitmap_equal(a, b, MAX_SWAPFILES))则 |
| 159 | 以i小于MAX_SWAPFILES循环 |
| 名称 | 描述 |
|---|---|
| init_zswap | module init and exit |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |