Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Conditionally leave frozen/stopped state

Proto:void cgroup_leave_frozen(bool always_leave)

Type:void

Parameter:

TypeParameterName
boolalways_leave
135  spin_lock_irq( & css_set_lock)
136  cgrp = task_dfl_cgroup(current process)
137  If always_leave || Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
138  Decrement cgroup's nr_frozen_tasks.
139  Revisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.
140  WARN_ON_ONCE(!frozen)
141  frozen = false
142  Else if Not (jobctl & JOBCTL_TRAP_FREEZE) Then
143  spin_lock( & siglock)
144  jobctl |= JOBCTL_TRAP_FREEZE
145  set_thread_flag(signal pending )
146  spin_unlock( & siglock)
148  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
get_signal