函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ze_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

函数原型:int freeze_processes(void)

返回类型:int

参数:

127  error等于__usermodehelper_disable - Prevent new helpers from being started.*@depth: New value to assign to usermodehelper_disabled.* Set usermodehelper_disabled to @depth and wait for running helpers to exit.
128  如果error则返回:error
132  flags或等于This thread called freeze_processes() and should not be frozen
134  如果非pm_freezingatomic_inc( & system_freezing_cnt)
137  pm_wakeup_clear(true)
138  打印信息("Freezing user space processes ... ")
139  pm_freezing = true
140  error等于try_to_freeze_tasks(true)
141  如果非error
142  __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.
143  打印标准信息("done.")
145  打印标准信息("\n")
146  BUG_ON(Are we running in atomic context? WARNING: this macro cannot* always detect atomic context; in particular, it cannot know about* held spinlocks in non-preemptible kernels. Thus it should not be())
154  如果非error且非m_killer_disable - disable OOM killer*@timeout: maximum timeout to wait for oom victims in jiffies* Forces all page allocations to fail rather than trigger OOM killererror等于负EBUSY
157  如果errorthaw_processes()
159  返回:error
调用者
名称描述
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_ioctl