函数逻辑报告 |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-27 11:01:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:snapshot_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
函数原型:int snapshot_read_next(struct snapshot_handle *handle)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct snapshot_handle * | handle |
2097 | 如果umber of the block of PAGE_SIZE bytes the* next operation will refer to (ie. current)大于Number of pages needed for saving the original pfns of the image pages 加Total number of image pages 则返回:0 |
2100 | 如果非Pointer to an auxiliary buffer (1 page) 则 |
2102 | Pointer to an auxiliary buffer (1 page) 等于get_image_page - Allocate a page for a hibernation image |
2103 | 如果非Pointer to an auxiliary buffer (1 page) 则返回:负ENOMEM |
2109 | error等于init_header((structswsusp_info * )Pointer to an auxiliary buffer (1 page) ) |
2118 | 否则 |
2122 | 如果PageHighMem(page)则 |
2130 | kaddr等于kmap_atomic(page) |
2134 | 否则 |
2139 | 返回:PAGE_SIZE |
名称 | 描述 |
---|---|
save_image | save_image - save the suspend image data |
save_image_lzo | save_image_lzo - Save the suspend image data compressed with LZO.*@handle: Swap map handle to use for saving the image.*@snapshot: Image to read data from.*@nr_to_write: Number of pages to save. |
swsusp_write | swsusp_write - Write entire image and metadata.*@flags: flags to pass to the "boot" kernel in the image header* It is important _NOT_ to umount filesystems at this point. We want* them synced (in case something goes wrong) but we DO not want to mark |
snapshot_read |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |