函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:45:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Reclaims as many pages from the given memcg as possible.* Caller is responsible for holding css reference for memcg.

函数原型:static int mem_cgroup_force_empty(struct mem_cgroup *memcg)

返回类型:int

参数:

类型参数名称
struct mem_cgroup *memcg
3149  nr_retries等于MEM_CGROUP_RECLAIM_RETRIES
3152  lru_add_drain_all()
3154  Drains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.
3157 nr_retriespage_counter_read( & Accounted resources )循环
3160  如果signal_pending(当前进程)则返回:负EINTR
3163  progress等于try_to_free_mem_cgroup_pages(memcg, 1, GFP_KERNEL, true)
3165  如果非progress
3166  nr_retries自减
3173  返回:0
调用者
名称描述
mem_cgroup_force_empty_write