函数逻辑报告 |
Source Code:kernel\power\hibernate.c |
Create Date:2022-07-27 10:59:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:software_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
函数原型:static int software_resume(void)
返回类型:int
参数:无
804 | nr_calls等于0 |
809 | 如果noresume或非hibernation_available()则返回:0 |
824 | 如果swsusp_resume_device则转到:Check_image |
832 | pm_pr_dbg("Checking hibernation image partition %s\n", resume_file) |
834 | 如果resume_delay则 |
835 | 打印信息("Waiting %dsec before reading resume device ...\n", resume_delay) |
837 | ssleep(resume_delay) |
847 | 如果是数字且resume_wait则 |
850 | msleep(10) |
853 | 如果非swsusp_resume_device则 |
858 | wait_for_device_probe() |
860 | 如果resume_wait则 |
861 | 当swsusp_resume_device等于name_to_dev_t(resume_file)恒等于0循环 |
862 | msleep(10) |
867 | 如果非swsusp_resume_device则 |
873 | Check_image : |
874 | pm_pr_dbg("Hibernation image partition %d:%d present\n", MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device)) |
877 | pm_pr_dbg("Looking for hibernation image.\n") |
889 | 打印信息("resume from hibernation\n") |
890 | pm_prepare_console() |
891 | error等于__pm_notifier_call_chain(Going to restore a saved image , - 1, & nr_calls) |
892 | 如果error则 |
893 | nr_calls自减 |
894 | 转到:Close_Finish |
897 | pm_pr_dbg("Preparing processes for restore.\n") |
899 | 如果error则转到:Close_Finish |
901 | error等于load_image_and_restore() |
902 | thaw_processes() |
903 | Finish : |
904 | __pm_notifier_call_chain(Restore failed , nr_calls, NULL) |
905 | pm_restore_console() |
909 | Unlock : |
911 | pm_pr_dbg("Hibernation image not present or could not be loaded.\n") |
912 | 返回:error |
913 | Close_Finish : |
915 | 转到:Finish |
名称 | 描述 |
---|---|
resume_store |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |