函数逻辑报告 |
Source Code:kernel\power\swap.c |
Create Date:2022-07-27 11:02:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:load_image - load the image using the swap map handle*@handle and the snapshot handle @snapshot* (assume there are @nr_pages pages to load)
函数原型:static int load_image(struct swap_map_handle *handle, struct snapshot_handle *snapshot, unsigned int nr_to_read)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct swap_map_handle * | handle | |
struct snapshot_handle * | snapshot | |
unsigned int | nr_to_read |
1054 | ret等于0 |
1061 | hib_init_batch( & hb) |
1064 | 打印信息("Loading image data pages (%u pages)...\n", nr_to_read) |
1065 | m等于nr_to_read除10 |
1068 | nr_pages等于0 |
1070 | 循环 |
1077 | 如果Set to one to notify the caller of* snapshot_write_next() that it may* need to call wait_on_bio_chain()则ret等于hib_wait_io( & hb) |
1084 | nr_pages自加 |
1086 | err2等于hib_wait_io( & hb) |
1090 | 如果非ret则 |
1091 | 打印信息("Image loading done\n") |
1093 | 如果非snapshot_image_loaded(snapshot)则ret等于负ENODATA |
1097 | 返回:ret |
名称 | 描述 |
---|---|
swsusp_read | swsusp_read - read the hibernation image.*@flags_p: flags passed by the "frozen" kernel in the image header should* be written into this memory location |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |