函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:snapshot_write_finalize - Complete the loading of a hibernation image.* Must be called after the last call to snapshot_write_next() in case the last* page in the image happens to be a highmem page and its contents should be* stored in highmem

函数原型:void snapshot_write_finalize(struct snapshot_handle *handle)

返回类型:void

参数:

类型参数名称
struct snapshot_handle *handle
2671  copy_last_highmem_page()
2673  page_key_write(address of the block to read from* or write to)
2674  page_key_free()
2675  hibernate_restore_protect_page(address of the block to read from* or write to)
2677  如果umber of the block of PAGE_SIZE bytes the* next operation will refer to (ie. current)大于1且umber of the block of PAGE_SIZE bytes the* next operation will refer to (ie. current)大于Number of pages needed for saving the original pfns of the image pages Total number of image pages
2678  memory_bm_recycle( & Memory bitmap used for marking saveable pages (during hibernation) or* hibernation image pages (during restore))
2679  free_highmem_data()
调用者
名称描述
load_imageload_image - load the image using the swap map handle*@handle and the snapshot handle @snapshot* (assume there are @nr_pages pages to load)
load_image_lzoload_image_lzo - Load compressed image data and decompress them with LZO.*@handle: Swap map handle to use for loading data.*@snapshot: Image to copy uncompressed data into.*@nr_to_read: Number of pages to load.
snapshot_ioctl