函数逻辑报告

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_prepare_console

函数原型:void pm_prepare_console(void)

返回类型:void

参数:

132  如果非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) 则返回
135  orig_fgconsole等于vt_move_to_console(SUSPEND_CONSOLE, 1)
136  如果orig_fgconsole小于0则返回
139  orig_kmsg等于vt_kmsg_redirect(SUSPEND_CONSOLE)
140  返回
调用者
名称描述
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