函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:load header - Check the image header and copy the data from it.

函数原型:static int load_header(struct swsusp_info *info)

返回类型:int

参数:

类型参数名称
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  如果非error
2203  Total number of image pages 等于image_pages
2204  Number of pages needed for saving the original pfns of the image pages 等于pagesimage_pages减1
2206  返回:error
调用者
名称描述
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