函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\hibernate.c Create Date:2022-07-27 10:59:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sume_target_kernel - Restore system state from a hibernation image

函数原型:static int resume_target_kernel(bool platform_mode)

返回类型:int

参数:

类型参数名称
boolplatform_mode
444  error等于dpm_suspend_end(PMSG_QUIESCE)
445  如果error
446  打印错误信息("Some devices failed to power down, aborting resume\n")
447  返回:error
450  error等于platform_pre_restore - Prepare for hibernate image restoration
451  如果error则转到:Cleanup
454  error等于hibernate_resume_nonboot_cpu_disable()
455  如果error则转到:Enable_cpus
458  禁止中断()
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  如果error则转到:Enable_irqs
465  save_processor_state()
466  error等于restore_highmem()
467  如果非error
468  error等于swsusp_arch_resume()
474  BUG_ON(!error)
479  restore_highmem()
486  swsusp_free()
487  restore_processor_state()
488  touch_softlockup_watchdog()
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
494  开中断()
496  Enable_cpus :
497  suspend_enable_secondary_cpus()
499  Cleanup :
500  platform_restore_cleanup - Switch to the working state after failing restore
502  dpm_resume_start(PMSG_RECOVER)
504  返回:error
调用者
名称描述
hibernation_restorehibernation_restore - Quiesce devices and restore from a hibernation image