Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void cgroup_enter_frozen(void)

Type:void

Parameter:Nothing

111  If frozen Then Return
114  spin_lock_irq( & css_set_lock)
115  frozen = true
116  cgrp = task_dfl_cgroup(current process)
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)
Caller
NameDescribe
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,