函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_id_put_many

函数原型:static void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
unsigned intn
4804  如果_sub_and_test - subtract from a refcount and test if it is 0*@i: amount to subtract from the refcount*@r: the refcount* Similar to atomic_dec_and_test(), but it will WARN, return false and* ultimately leak on underflow and will fail to decrement when
4805  mem_cgroup_id_remove(memcg)
4808  设置一个css引用
调用者
名称描述
mem_cgroup_id_put
__mem_cgroup_clear_mcancels all extra charges on mc.from and mc.to, and wakes up all waiters.
mem_cgroup_uncharge_swapmem_cgroup_uncharge_swap - uncharge swap space*@entry: swap entry to uncharge*@nr_pages: the amount of swap space to uncharge