Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\swap.c Create Date:2022-07-28 10:02:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:swap_writer_finish

Proto:static int swap_writer_finish(struct swap_map_handle *handle, unsigned int flags, int error)

Type:int

Parameter:

TypeParameterName
struct swap_map_handle *handle
unsigned intflags
interror
491  If Not error Then
492  flush_swap_writer(handle)
493  pr_info("S")
494  error = Saving part
495  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("|\n")
498  If error Then _all_swap_pages - free swap pages allocated for saving image data.* It also frees the extents used to register which swap entries had been* allocated.
500  release_swap_writer(handle)
501  swsusp_close - close swap device.
503  Return error
Caller
NameDescribe
swsusp_writeswsusp_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