函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Enter frozen/stopped state, if not yet there. Update cgroup's counters,* and revisit the state of the cgroup, if necessary.

函数原型:void cgroup_enter_frozen(void)

返回类型:void

参数:

111  如果frozen则返回
114  spin_lock_irq( & css_set_lock)
115  frozen = true
116  cgrp等于task_dfl_cgroup(当前进程)
117  Increment cgroup's nr_frozen_tasks.
118  Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.
119  spin_unlock_irq( & css_set_lock)
调用者
名称描述
ptrace_stopThis must be called with current->sighand->siglock held.* This should be the path for all ptrace stops.* We always set current->last_siginfo while stopped here.* That makes it a way to test a stopped process for
do_signal_stopdo_signal_stop - handle group stop for SIGSTOP and other stop signals*@signr: signr causing group stop if initiating* If %JOBCTL_STOP_PENDING is not set yet, initiate group stop with @signr* and participate in it
do_freezer_trapdo_freezer_trap - handle the freezer jobctl trap* Puts the task into frozen state, if only the task is not about to quit.* In this case it drops JOBCTL_TRAP_FREEZE.* CONTEXT:* Must be called with @current->sighand->siglock held,
wait_for_vfork_done