Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\hibernate.c Create Date:2022-07-28 09:59:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:load_image_and_restore

Proto:static int load_image_and_restore(void)

Type:int

Parameter:Nothing

671  pm_pr_dbg("Loading hibernation image.\n")
673  lock_device_hotplug()
674  error = create_basic_memory_bitmaps()
675  If error Then Go to Unlock
678  error = swsusp_read( & flags)
679  swsusp_close(le is open for reading )
680  If Not error Then hibernation_restore - Quiesce devices and restore from a hibernation image
683  pr_err("Failed to load hibernation image, recovering.\n")
684  swsusp_free()
685  free_basic_memory_bitmaps()
686  Unlock :
687  unlock_device_hotplug()
689  Return error
Caller
NameDescribe
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