函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:44:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Drains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.
函数原型:static void drain_all_stock(struct mem_cgroup *root_memcg)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mem_cgroup * | root_memcg |
2155 | stock等于per_cpu(memcg_stock, cpu) |
2157 | bool flush = false |
2160 | memcg等于 this never be root cgroup |
2161 | 如果memcg且nr_pages且mem_cgroup_is_descendant(memcg, root_memcg)则flush = true |
2168 | 如果cpu恒等于curcpu则drain_local_stock( & work) |
2170 | 否则为cpu配置任务 |
2174 | put_cpu() |
名称 | 描述 |
---|---|
try_charge | |
mem_cgroup_resize_max | |
mem_cgroup_force_empty | Reclaims as many pages from the given memcg as possible.* Caller is responsible for holding css reference for memcg. |
mem_cgroup_css_offline | |
memory_high_write | |
memory_max_write |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |