Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_header

Proto:static int init_header(struct swsusp_info *info)

Type:int

Parameter:

TypeParameterName
struct swsusp_info *info
2049  memset(info, 0, sizeof(structswsusp_info))
2050  num_physpages = get_num_physpages()
2051  image_pages = Total number of image pages
2052  pages = snapshot_get_image_size()
2053  size = pages
2054  size <<= PAGE_SHIFT determines the page size
2055  Return init_header_complete(info)
Caller
NameDescribe
snapshot_read_nextsnapshot_read_next - Get the address to read the next image page from.*@handle: Snapshot handle to be used for the reading.* On the first call, @handle should point to a zeroed snapshot_handle* structure