函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:thaw_processes

函数原型:void thaw_processes(void)

返回类型:void

参数:

192  curr等于当前进程
194  trace_suspend_resume(TPS("thaw_processes"), 0, true)
195  如果pm_freezingatomic_dec( & system_freezing_cnt)
197  pm_freezing = false
198  pm_nosig_freezing = false
200  oom_killer_enable()
202  打印信息("Restarting tasks ... ")
204  __usermodehelper_set_disable_depth - Modify usermodehelper_disabled.*@depth: New value to assign to usermodehelper_disabled.* Change the value of usermodehelper_disabled (under umhelper_sem locked for* writing) and wakeup tasks waiting for it to change.
205  thaw_workqueues()
207  cpuset_wait_for_hotplug()
209  read_lock( & tasklist_lock)
210  Careful: this is a double loop, 'break' won't work as expected. (g, p)
212  WARN_ON((p != curr) && (任务标志 & This thread called freeze_processes() and should not be frozen ))
213  __thaw_task(p)
215  read_unlock( & tasklist_lock)
217  WARN_ON(!(任务标志 & This thread called freeze_processes() and should not be frozen ))
218  任务标志与等于This thread called freeze_processes() and should not be frozen 的反
220  usermodehelper_enable()
222  进程调度
223  打印标准信息("done.\n")
224  trace_suspend_resume(TPS("thaw_processes"), 0, false)
调用者
名称描述
freeze_processesze_processes - Signal user space processes to enter the refrigerator.* The current thread will not be frozen. The same process that calls* freeze_processes must later call thaw_processes.* On success, returns 0
hibernatehibernate - Carry out system hibernation, including saving the image.
software_resumesoftware_resume - Resume from a saved hibernation image.* This routine is called as a late initcall, when all devices have been* discovered and initialized already.* The image reading code is called to see if there is a hibernation image
snapshot_release
snapshot_ioctl