函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static inline bool task_under_cgroup_hierarchy(struct task_struct *task, struct cgroup *ancestor)

返回类型:bool

参数:

类型参数名称
struct task_struct *task
struct cgroup *ancestor
609  cset等于获得任务的css_set
611  返回: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
调用者
名称描述
____bpf_current_task_under_cgroup