函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_buffer - Get the address to store the next image data page.* Get the address that snapshot_write_next() should return to its caller to* write to.

函数原型:static void *get_buffer(struct memory_bitmap *bm, struct chain_allocator *ca)

返回类型:void

参数:

类型参数名称
struct memory_bitmap *bm
struct chain_allocator *ca
2542  pfn等于memory_bm_rtree_next_pfn - Find the next set bit in a memory bitmap.*@bm: Memory bitmap.* Starting from the last returned position this function searches for the next* set bit in @bm and returns the PFN represented by it. If no more bits are
2544  如果pfn恒等于Data types related to memory bitmaps则返回:错误号
2547  page等于pfn_to_page(pfn)
2548  如果PageHighMem(page)则返回:get_highmem_page_buffer(page, ca)
2551  如果swsusp_page_is_forbidden(page)且swsusp_page_is_free(page)则返回:page_address(page)
2562  pbe等于chain_alloc(ca, pbe的长度)
2563  如果非pbe
2564  swsusp_free - Free pages allocated for hibernation image.* Image pages are alocated before snapshot creation, so they need to be* released after resume.
2565  返回:错误号
2567  riginal address of a page 等于page_address(page)
2568  address of the copy 等于List of "safe" pages (ie. pages that were not used by the image kernel* before hibernation) that may be used as temporary storage for image kernel* memory contents.
2569  List of "safe" pages (ie. pages that were not used by the image kernel* before hibernation) that may be used as temporary storage for image kernel* memory contents.等于next
2570  next等于List of PBEs needed for restoring the pages that were allocated before* the suspend and included in the suspend image, but have also been* allocated by the "resume" kernel, so their contents cannot be written* directly to their "original" page frames.
2571  List of PBEs needed for restoring the pages that were allocated before* the suspend and included in the suspend image, but have also been* allocated by the "resume" kernel, so their contents cannot be written* directly to their "original" page frames.等于pbe
2572  返回:address of the copy
调用者
名称描述
snapshot_write_nextsnapshot_write_next - Get the address to store the next image page.*@handle: Snapshot handle structure to guide the writing.* On the first call, @handle should point to a zeroed snapshot_handle* structure