函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reate_basic_memory_bitmaps - Create bitmaps to hold basic page information

函数原型:int create_basic_memory_bitmaps(void)

返回类型:int

参数:

1082  error等于0
1084  如果Set bits in this map correspond to the page frames the contents of which* should not be saved during the suspend.Set bits in this map correspond to free page frames. 则返回:0
1086  否则BUG_ON(Set bits in this map correspond to the page frames the contents of which* should not be saved during the suspend. || Set bits in this map correspond to free page frames. )
1089  bm1等于分配内存并置零
1090  如果非bm1则返回:负ENOMEM
1093  error等于memory_bm_create - Allocate memory for a memory bitmap.
1094  如果error则转到:Free_first_object
1097  bm2等于分配内存并置零
1098  如果非bm2则转到:Free_first_bitmap
1101  error等于memory_bm_create - Allocate memory for a memory bitmap.
1102  如果error则转到:Free_second_object
1105  Set bits in this map correspond to the page frames the contents of which* should not be saved during the suspend.等于bm1
1106  Set bits in this map correspond to free page frames. 等于bm2
1107  mark_nosave_pages - Mark pages that should not be saved.*@bm: Memory bitmap.* Set the bits in @bm that correspond to the page frames the contents of which* should not be saved.
1109  pr_debug("Basic memory bitmaps created\n")
1111  返回:0
1113  Free_second_object :
1114  释放内存
1115  Free_first_bitmap :
1116  memory_bm_free(bm1, PG_UNSAFE_CLEAR)
1117  Free_first_object :
1118  释放内存
1119  返回:负ENOMEM
调用者
名称描述
hibernatehibernate - Carry out system hibernation, including saving the image.
snapshot_open
snapshot_ioctl
load_image_and_restore