函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void cgroup_post_fork(struct task_struct *child)

返回类型:void

参数:

类型参数名称
struct task_struct *child
5933  spin_lock_irq( & css_set_lock)
5936  如果此条件成立可能性大(为编译器优化)(进程ID)则
5937  WARN_ON_ONCE(!链表为空)
5938  cset等于获得任务的css_set
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  如果此条件成立可能性小(为编译器优化)(cgroup_task_freeze(child))则
5950  加自旋锁
5951  WARN_ON_ONCE( task is frozen/stopped (used by the cgroup freezer) )
5952  JOBCTL_*, siglock protected: 或等于JOBCTL_TRAP_FREEZE
5953  自旋锁解锁
5963  spin_unlock_irq( & css_set_lock)
5970  循环
5970  __ss_mask等于These bitmasks identify subsystems with specific features to avoid* having to do iterative checks repeatedly.
5970  如果非CGROUP_SUBSYS_COUNT
5970  i等于0
5970  退出
5970 i小于CGROUP_SUBSYS_COUNT循环
5970  ss等于cgroup_subsys[i]
5971  fork(child)
5972  当(false)循环
调用者
名称描述
copy_process创建进程