函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_header

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

返回类型:int

参数:

类型参数名称
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  返回:init_header_complete(info)
调用者
名称描述
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