Function report |
Source Code:kernel\power\swap.c |
Create Date:2022-07-28 10:02:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:load_image - load the image using the swap map handle*@handle and the snapshot handle @snapshot* (assume there are @nr_pages pages to load)
Proto:static int load_image(struct swap_map_handle *handle, struct snapshot_handle *snapshot, unsigned int nr_to_read)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct swap_map_handle * | handle | |
struct snapshot_handle * | snapshot | |
unsigned int | nr_to_read |
1054 | ret = 0 |
1061 | hib_init_batch( & hb) |
1064 | pr_info("Loading image data pages (%u pages)...\n", nr_to_read) |
1065 | m = nr_to_read / 10 |
1068 | nr_pages = 0 |
1070 | cycle |
1072 | If ret <= 0 Then Break |
1075 | If ret Then Break |
1077 | If Set to one to notify the caller of* snapshot_write_next() that it may* need to call wait_on_bio_chain() Then ret = hib_wait_io( & hb) |
1079 | If ret Then Break |
1084 | nr_pages++ |
1086 | err2 = hib_wait_io( & hb) |
1090 | If Not ret Then |
1091 | pr_info("Image loading done\n") |
1093 | If Not snapshot_image_loaded(snapshot) Then ret = -ENODATA |
1097 | Return ret |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |