Function report |
Source Code:kernel\power\hibernate.c |
Create Date:2022-07-28 09:59:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sume_target_kernel - Restore system state from a hibernation image
Proto:static int resume_target_kernel(bool platform_mode)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| bool | platform_mode |
| 444 | error = dpm_suspend_end(PMSG_QUIESCE) |
| 445 | If error Then |
| 455 | If error Then Go to Enable_cpus |
| 458 | local_irq_disable() |
| 459 | Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. = SYSTEM_SUSPEND |
| 461 | error = syscore_suspend() |
| 462 | If error Then Go to Enable_irqs |
| 465 | save_processor_state() |
| 466 | error = restore_highmem() |
| 467 | If Not error Then |
| 486 | swsusp_free() |
| 487 | restore_processor_state() |
| 490 | syscore_resume() |
| 492 | Enable_irqs : |
| 493 | Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. = SYSTEM_RUNNING |
| 496 | Enable_cpus : |
| 499 | Cleanup : |
| 504 | Return error |
| Name | Describe |
|---|---|
| hibernation_restore | hibernation_restore - Quiesce devices and restore from a hibernation image |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |