Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:load header - Check the image header and copy the data from it.

Proto:static int load_header(struct swsusp_info *info)

Type:int

Parameter:

TypeParameterName
struct swsusp_info *info
2200  List of PBEs needed for restoring the pages that were allocated before* the suspend and included in the suspend image, but have also been* allocated by the "resume" kernel, so their contents cannot be written* directly to their "original" page frames. = NULL
2201  error = check_header(info)
2202  If Not error Then
2203  Total number of image pages = image_pages
2204  Number of pages needed for saving the original pfns of the image pages = pages - image_pages - 1
2206  Return error
Caller
NameDescribe
snapshot_write_nextsnapshot_write_next - Get the address to store the next image page.*@handle: Snapshot handle structure to guide the writing.* On the first call, @handle should point to a zeroed snapshot_handle* structure