函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\swap.c Create Date:2022-07-27 11:02:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:swap_writer_finish

函数原型:static int swap_writer_finish(struct swap_map_handle *handle, unsigned int flags, int error)

返回类型:int

参数:

类型参数名称
struct swap_map_handle *handle
unsigned intflags
interror
491  如果非error
492  flush_swap_writer(handle)
493  打印信息("S")
494  error等于Saving part
495  打印标准信息("|\n")
498  如果error_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  返回:error
调用者
名称描述
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