Function report |
Source Code:kernel\power\swap.c |
Create Date:2022-07-28 10:02:47 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int swsusp_write(unsigned int flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | flags |
| 909 | pages = snapshot_get_image_size() |
| 910 | error = get_swap_writer( & handle) |
| 911 | If error Then |
| 915 | If flags & SF_NOCOMPRESS_MODE Then |
| 922 | memset( & snapshot, 0, sizeof(structsnapshot_handle)) |
| 928 | Go to out_finish |
| 930 | header = This macro returns the address from/to which the caller of* snapshot_read_next()/snapshot_write_next() is allowed to* read/write data after the function returns(snapshot) |
| 931 | error = swap_write_page( & handle, header, NULL) |
| 932 | If Not error Then |
| 937 | out_finish : |
| 938 | error = swap_writer_finish( & handle, flags, error) |
| 939 | Return error |
| 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 |