Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\console.c Create Date:2022-07-28 09:57:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pm_restore_console

Proto:void pm_restore_console(void)

Type:void

Parameter:Nothing

145  If Not 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) Then Return
148  If orig_fgconsole >= 0 Then
149  vt_move_to_console(orig_fgconsole, 0)
150  vt_kmsg_redirect(orig_kmsg)
Caller
NameDescribe
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