函数逻辑报告 |
Source Code:mm\swap_slots.c |
Create Date:2022-07-27 16:51:21 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:drain_slots_cache_cpu
函数原型:static void drain_slots_cache_cpu(unsigned int cpu, unsigned int type, bool free_slots)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| unsigned int | cpu | |
| unsigned int | type | |
| bool | free_slots |
| 174 | swp_entry_t * slots = NULL |
| 177 | 如果type按位与SLOTS_CACHE且slots则 |
| 178 | mutex_lock( & protects slots, nr, cur ) |
| 179 | swapcache_free_entries(slots + cur, nr) |
| 180 | cur等于0 |
| 181 | nr等于0 |
| 182 | 如果free_slots且slots则 |
| 184 | slots = NULL |
| 188 | 如果type按位与SLOTS_CACHE_RET且slots_ret则 |
| 189 | spin_lock_irq( & protects slots_ret, n_ret ) |
| 191 | n_ret等于0 |
| 192 | 如果free_slots且slots_ret则 |
| 196 | spin_unlock_irq( & protects slots_ret, n_ret ) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |