函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-27 06:56:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_is_descendant

函数原型:static inline bool mem_cgroup_is_descendant(struct mem_cgroup *memcg, struct mem_cgroup *root)

返回类型:bool

参数:

类型参数名称
struct mem_cgroup *memcg
struct mem_cgroup *root
490  如果root恒等于memcg则返回:true
492  如果非* Should the accounting and control be hierarchical, per subtree?则返回:false
494  返回: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
调用者
名称描述
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.
mm_match_cgroup