函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Conditionally leave frozen/stopped state

函数原型:void cgroup_leave_frozen(bool always_leave)

返回类型:void

参数:

类型参数名称
boolalways_leave
135  spin_lock_irq( & css_set_lock)
136  cgrp等于task_dfl_cgroup(当前进程)
137  如果always_leave或非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
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  否则如果非jobctl按位与JOBCTL_TRAP_FREEZE的值则
143  加自旋锁
144  jobctl或等于JOBCTL_TRAP_FREEZE
145  set_thread_flag(signal pending )
146  自旋锁解锁
148  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
get_signal
wait_for_vfork_done