函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pm_restore_console

函数原型:void pm_restore_console(void)

返回类型:void

参数:

145  如果非There are three cases when a VT switch on suspend/resume are required:* 1) no driver has indicated a requirement one way or another, so preserve* the old behavior* 2) console suspend is disabled, we want to see debug messages across* suspend/resume* 3) 则返回
148  如果orig_fgconsole大于等于0则
149  vt_move_to_console(orig_fgconsole, 0)
150  vt_kmsg_redirect(orig_kmsg)
调用者
名称描述
suspend_preparesuspend_prepare - Prepare for entering system sleep state.* Common code run for every system sleep state that can be entered (except for* hibernation). Run suspend notifiers, allocate the "suspend" console and* freeze processes.
suspend_finishsuspend_finish - Clean up before finishing the suspend sequence.* Call platform code to clean up, restart processes, and free the console that* we've allocated. This routine is not called for hibernation.
hibernation_restorehibernation_restore - Quiesce devices and restore from a hibernation image
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