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_prepare_console

Proto:void pm_prepare_console(void)

Type:void

Parameter:Nothing

132  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
135  orig_fgconsole = vt_move_to_console(SUSPEND_CONSOLE, 1)
136  If orig_fgconsole < 0 Then Return
139  orig_kmsg = vt_kmsg_redirect(SUSPEND_CONSOLE)
140  Return
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.
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