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:ask_under_cgroup_hierarchy - test task's membership of cgroup ancestry*@task: the task to be tested*@ancestor: possible ancestor of @task's cgroup* Tests whether @task's default cgroup hierarchy is a descendant of @ancestor

Proto:static inline bool task_under_cgroup_hierarchy(struct task_struct *task, struct cgroup *ancestor)

Type:bool

Parameter:

TypeParameterName
struct task_struct *task
struct cgroup *ancestor
609  cset = ask_css_set - obtain a task's css_set*@task: the task to obtain css_set for* See task_css_set_check().
611  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
____bpf_current_task_under_cgroup