Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:12:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_id_put_many

Proto:static void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
unsigned intn
4804  If _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 Then
4805  mem_cgroup_id_remove(memcg)
4808  ss_put - put a css reference*@css: target css* Put a reference obtained via css_get() and css_tryget_online().
Caller
NameDescribe
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