函数逻辑报告 | 
Source Code:mm\swapfile.c | 
Create Date:2022-07-27 16:46:50 | 
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:lock_cluster
函数原型:static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, unsigned long offset)
返回类型:struct swap_cluster_info
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct swap_info_struct * | si | |
| unsigned long | offset | 
| 344 | 如果ci则 | 
| 345 | ci加等于offset除SWAPFILE_CLUSTER | 
| 346 | 加自旋锁 | 
| 348 | 返回:ci | 
| 名称 | 描述 | 
|---|---|
| lock_cluster_or_swap_info | Determine the locking method in use for this device. Return* swap_cluster_info if SSD-style cluster-based locking is in place. | 
| swap_do_scheduled_discard | Doing discard actually. After a cluster discard is finished, the cluster* will be added to free cluster list. caller should hold si->lock. | 
| scan_swap_map_try_ssd_cluster | Try to get a swap entry from current cpu's swap entry pool (a cluster). This* might involve allocating a new cluster for current CPU too. | 
| scan_swap_map_slots | |
| swap_alloc_cluster | |
| swap_free_cluster | |
| swap_entry_free | |
| page_trans_huge_map_swapcount | |
| add_swap_count_continuation | add_swap_count_continuation - called when a swap count is duplicated* beyond SWAP_MAP_MAX, it allocates a new page and links that to the entry's* page of the original vmalloc'ed swap_map, to hold the continuation count | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |