函数逻辑报告 |
Source Code:mm\huge_memory.c |
Create Date:2022-07-27 17:37:36 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:deferred_split_scan
函数原型:static unsigned long deferred_split_scan(struct shrinker *shrink, struct shrink_control *sc)
返回类型:unsigned long
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct shrinker * | shrink | |
| struct shrink_control * | sc |
| 2906 | ds_queue等于deferred_split_queue |
| 2910 | split等于0 |
| 2917 | spin_lock_irqsave( & split_queue_lock, flags) |
| 2921 | page等于compound_head(page) |
| 2923 | 链表项移动到头部 |
| 2924 | 否则 |
| 2926 | 删除链表项并重新初始化 |
| 2927 | split_queue_len自减 |
| 2929 | 如果非How many objects scan_objects should scan and try to reclaim.* This is reset before every call, so it is safe for callees* to modify.先自减则退出 |
| 2932 | spin_unlock_irqrestore( & split_queue_lock, flags) |
| 2939 | 如果非split_huge_page(page)则split自加 |
| 2942 | next : |
| 2946 | spin_lock_irqsave( & split_queue_lock, flags) |
| 2947 | 加入二个链表项 |
| 2948 | spin_unlock_irqrestore( & split_queue_lock, flags) |
| 2954 | 如果非split且链表为空则返回:SHRINK_STOP |
| 2956 | 返回:split |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |