Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-28 11:11:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:group_exit - detach cgroup from exiting task*@tsk: pointer to task_struct of exiting process* Description: Detach cgroup from @tsk.

Proto:void cgroup_exit(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
5988  spin_lock_irq( & css_set_lock)
5990  WARN_ON_ONCE(list_empty - tests whether a list is empty*@head: the list to test.)
5991  cset = ask_css_set - obtain a task's css_set*@task: the task to obtain css_set for* See task_css_set_check().
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  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
5994  rnal task count, protected by css_set_lock --
5996  WARN_ON_ONCE(cgroup_task_frozen(tsk))
5997  If Value for the false possibility is greater at compile time(cgroup_task_freeze(tsk)) Then 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  Do
6003  __ss_mask = have_exit_callback
6003  If Not CGROUP_SUBSYS_COUNT Then
6003  i = 0
6003  Break
6003  When i < CGROUP_SUBSYS_COUNT cycle
6003  ss = cgroup_subsys[i]
6004  exit(tsk)
6005  When (false) cycle