函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:load_image_and_restore

函数原型:static int load_image_and_restore(void)

返回类型:int

参数:

671  pm_pr_dbg("Loading hibernation image.\n")
673  lock_device_hotplug()
674  error等于create_basic_memory_bitmaps()
675  如果error则转到:Unlock
678  error等于swsusp_read( & flags)
679  swsusp_close(le is open for reading )
680  如果非errorhibernation_restore - Quiesce devices and restore from a hibernation image
683  打印错误信息("Failed to load hibernation image, recovering.\n")
684  swsusp_free()
685  free_basic_memory_bitmaps()
686  Unlock :
687  unlock_device_hotplug()
689  返回:error
调用者
名称描述
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