Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_post_fork - called on a new task after adding it to the task list*@child: the task in question* Adds the task to the list running through its css_set if necessary and* call the subsystem fork() callbacks

Proto:void cgroup_post_fork(struct task_struct *child)

Type:void

Parameter:

TypeParameterName
struct task_struct *child
5933  spin_lock_irq( & css_set_lock)
5936  If Value is more likely to compile time(process id) Then
5937  WARN_ON_ONCE(!list_empty - tests whether a list is empty*@head: the list to test.)
5938  cset = ask_css_set - obtain a task's css_set*@task: the task to obtain css_set for* See task_css_set_check().
5939  ed get/put for css_set objects
5940  rnal task count, protected by css_set_lock ++
5941  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
5949  If Value for the false possibility is greater at compile time(cgroup_task_freeze(child)) Then
5950  spin_lock( & siglock)
5951  WARN_ON_ONCE( task is frozen/stopped (used by the cgroup freezer) )
5952  siglock protected |= JOBCTL_TRAP_FREEZE
5953  spin_unlock( & siglock)
5963  spin_unlock_irq( & css_set_lock)
5970  Do
5970  __ss_mask = These bitmasks identify subsystems with specific features to avoid* having to do iterative checks repeatedly.
5970  If Not CGROUP_SUBSYS_COUNT Then
5970  i = 0
5970  Break
5970  When i < CGROUP_SUBSYS_COUNT cycle
5970  ss = cgroup_subsys[i]
5971  fork(child)
5972  When (false) cycle