函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:41:20 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:shrink_slab - shrink slab caches*@gfp_mask: allocation context*@nid: node whose slab caches to target*@memcg: memory cgroup whose slab caches to target*@priority: the reclaim priority* Call the shrink functions to age shrinkable caches
函数原型:static unsigned long shrink_slab(gfp_t gfp_mask, int nid, struct mem_cgroup *memcg, int priority)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
gfp_t | gfp_mask | |
int | nid | |
struct mem_cgroup * | memcg | |
int | priority |
664 | freed等于0 |
674 | 如果非mem_cgroup_disabled()且非mem_cgroup_is_root(memcg)则返回:shrink_slab_memcg(gfp_mask, nid, memcg, priority) |
681 | struct shrink_control sc = {gfp_mask = gfp_mask, current node being shrunk (for NUMA aware shrinkers) = nid, current memcg being shrunk (for memcg aware shrinkers) = memcg, } |
687 | ret等于do_shrink_slab( & sc, shrinker, priority) |
688 | 如果ret恒等于SHRINK_EMPTY则ret等于0 |
703 | out : |
704 | cond_resched() |
705 | 返回:freed |
名称 | 描述 |
---|---|
drop_slab_node | |
shrink_node_memcgs |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |