Function report |
Source Code:kernel\power\swap.c |
Create Date:2022-07-28 10:02:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:save_image - save the suspend image data
Proto:static int save_image(struct swap_map_handle *handle, struct snapshot_handle *snapshot, unsigned int nr_to_write)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct swap_map_handle * | handle | |
struct snapshot_handle * | snapshot | |
unsigned int | nr_to_write |
542 | hib_init_batch( & hb) |
544 | pr_info("Saving image data pages (%u pages)...\n", nr_to_write) |
546 | m = nr_to_write / 10 |
549 | nr_pages = 0 |
551 | When 1 cycle |
553 | If ret <= 0 Then Break |
556 | If ret Then Break |
561 | nr_pages++ |
563 | err2 = hib_wait_io( & hb) |
570 | Return ret |
Name | Describe |
---|---|
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 |
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 |