Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-28 05:57:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_is_descendant

Proto:static inline bool mem_cgroup_is_descendant(struct mem_cgroup *memcg, struct mem_cgroup *root)

Type:bool

Parameter:

TypeParameterName
struct mem_cgroup *memcg
struct mem_cgroup *root
490  If root == memcg Then Return true
492  If Not * Should the accounting and control be hierarchical, per subtree? Then Return false
494  Return group_is_descendant - test ancestry*@cgrp: the cgroup to be tested*@ancestor: possible ancestor of @cgrp* Test whether @cgrp is a descendant of @ancestor. It also returns %true* if @cgrp == @ancestor. This function is safe to call as long as @cgrp
Caller
NameDescribe
mem_cgroup_under_moveA routine for checking "mem" is under move_account() or not.* Checking a cgroup is mc.from or mc.to or under hierarchy of* moving cgroups. This is for waiting at high-memory pressure* caused by "move".
memcg_oom_wake_function
drain_all_stockDrains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it.