| Function report | 
| Source Code: mm\memcontrol.c | Create Date:2022-07-28 16:10:29 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Drains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.
Proto:static void drain_all_stock(struct mem_cgroup *root_memcg)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mem_cgroup * | root_memcg | 
| 2145 | If Not mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically Then Return | 
| 2154 | for_each_online_cpu(cpu) | 
| 2155 | stock = per_cpu(memcg_stock, cpu) | 
| 2157 | bool flush = false | 
| 2160 | memcg = this never be root cgroup | 
| 2161 | If memcg && nr_pages && mem_cgroup_is_descendant(memcg, root_memcg) Then flush = true | 
| 2174 | put_cpu() | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |