函数逻辑报告 |
Source Code:kernel\power\hibernate.c |
Create Date:2022-07-27 10:59:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:hibernation_snapshot - Quiesce devices and create a hibernation image.*@platform_mode: If set, use platform driver to prepare for the transition.* This routine must be called with system_transition_mutex held.
函数原型:int hibernation_snapshot(int platform_mode)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | platform_mode |
356 | pm_suspend_clear_flags() |
357 | error等于platform_begin - Call platform to start hibernation.*@platform_mode: Whether or not to use the platform driver. |
370 | 如果hibernation_test(TEST_FREEZER)则 |
376 | freezer_test_done = true |
377 | 转到:Thaw |
380 | error等于dpm_prepare(PMSG_FREEZE) |
381 | 如果error则 |
382 | dpm_complete(PMSG_RECOVER) |
383 | 转到:Thaw |
387 | pm_restrict_gfp_mask() |
389 | error等于dpm_suspend(PMSG_FREEZE) |
391 | 如果error或hibernation_test(TEST_DEVICES)则platform_recover - Recover from a failure to suspend devices.*@platform_mode: Whether or not to use the platform driver. |
403 | 如果error或非in_suspend则swsusp_free() |
406 | msg等于如果in_suspend则如果error则PMSG_RECOVER否则PMSG_THAW否则PMSG_RESTORE |
407 | dpm_resume(msg) |
409 | 如果error或非in_suspend则pm_restore_gfp_mask() |
412 | resume_console() |
413 | dpm_complete(msg) |
415 | Close : |
417 | 返回:error |
419 | Thaw : |
420 | thaw_kernel_threads() |
421 | Cleanup : |
422 | swsusp_free() |
423 | 转到:Close |
名称 | 描述 |
---|---|
hibernate | hibernate - Carry out system hibernation, including saving the image. |
snapshot_ioctl |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |