Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static inline bool cgroup_is_descendant(struct cgroup *cgrp, struct cgroup *ancestor)

Type:bool

Parameter:

TypeParameterName
struct cgroup *cgrp
struct cgroup *ancestor
571  If root != root || * The depth this cgroup is at. The root is at depth zero and each * step down the hierarchy increments the level. This along with * ancestor_ids[] can determine whether a given cgroup is a * descendant of another without traversing the hierarchy. < * The depth this cgroup is at. The root is at depth zero and each * step down the hierarchy increments the level. This along with * ancestor_ids[] can determine whether a given cgroup is a * descendant of another without traversing the hierarchy. Then Return false
573  Return ids of the ancestors at each level including self [* The depth this cgroup is at. The root is at depth zero and each * step down the hierarchy increments the level. This along with * ancestor_ids[] can determine whether a given cgroup is a * descendant of another without traversing the hierarchy.] == Inline functions.
Caller
NameDescribe
cgroup_procs_write_permission