函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:group_exit - detach cgroup from exiting task*@tsk: pointer to task_struct of exiting process* Description: Detach cgroup from @tsk.

函数原型:void cgroup_exit(struct task_struct *tsk)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
5988  spin_lock_irq( & css_set_lock)
5990  WARN_ON_ONCE(链表为空)
5991  cset等于获得任务的css_set
5992  ss_set_move_task - move a task from one css_set to another*@task: task being moved*@from_cset: css_set @task currently belongs to (may be NULL)*@to_cset: new css_set @task is being moved to (may be NULL)*@use_mg_tasks: move to @to_cset->mg_tasks instead
5993  添加链表项
5994  rnal task count, protected by css_set_lock 自减
5996  WARN_ON_ONCE(cgroup_task_frozen(tsk))
5997  如果此条件成立可能性小(为编译器优化)(cgroup_task_freeze(tsk))则Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.
6000  spin_unlock_irq( & css_set_lock)
6003  循环
6003  __ss_mask等于have_exit_callback
6003  如果非CGROUP_SUBSYS_COUNT
6003  i等于0
6003  退出
6003 i小于CGROUP_SUBSYS_COUNT循环
6003  ss等于cgroup_subsys[i]
6004  exit(tsk)
6005  当(false)循环
调用者
名称描述
do_exit