函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:47:03 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:The cluster corresponding to page_nr will be used. The cluster will be* removed from free cluster list and its usage counter will be increased.
函数原型:static void inc_cluster_info_page(struct swap_info_struct *p, struct swap_cluster_info *cluster_info, unsigned long page_nr)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct swap_info_struct * | p | |
struct swap_cluster_info * | cluster_info | |
unsigned long | page_nr |
538 | idx等于page_nr除SWAPFILE_CLUSTER |
540 | 如果非cluster_info则返回 |
542 | 如果cluster_is_free( & cluster_info[idx])则alloc_cluster(p, idx) |
545 | VM_BUG_ON(cluster_count( & cluster_info[idx]) >= SWAPFILE_CLUSTER) |
546 | cluster_set_count( & cluster_info[idx], cluster_count( & cluster_info[idx]) + 1) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |