函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memory_bm_position_reset

函数原型:static void memory_bm_position_reset(struct memory_bitmap *bm)

返回类型:void

参数:

类型参数名称
struct memory_bitmap *bm
550  zone等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表后项, structmem_zone_bm_rtree, list)
552  node等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表后项, structrtree_node, list)
554  node_pfn等于0
555  node_bit等于0
调用者
名称描述
memory_bm_creatememory_bm_create - Allocate memory for a memory bitmap.
clear_free_pages
copy_data_pages
swsusp_freeswsusp_free - Free pages allocated for hibernation image.* Image pages are alocated before snapshot creation, so they need to be* released after resume.
free_unnecessary_pages_unnecessary_pages - Release preallocated pages not needed for the image.
snapshot_read_nextsnapshot_read_next - Get the address to read the next image page from.*@handle: Snapshot handle to be used for the reading.* On the first call, @handle should point to a zeroed snapshot_handle* structure
duplicate_memory_bitmap
mark_unsafe_pagesmark_unsafe_pages - Mark pages that were used before hibernation.* Mark the pages that cannot be used for storing the image during restoration,* because they conflict with the pages that had been used before hibernation.
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