函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:minimum_image_size - Estimate the minimum acceptable size of an image

函数原型:static unsigned long minimum_image_size(unsigned long saveable)

返回类型:unsigned long

参数:

类型参数名称
unsigned longsaveable
1669  size等于global_node_page_state(NR_SLAB_RECLAIMABLE)加global_node_page_state(NR_ACTIVE_ANON)加global_node_page_state(NR_INACTIVE_ANON)加global_node_page_state(NR_ACTIVE_FILE)加global_node_page_state(NR_INACTIVE_FILE)
1675  返回:如果saveable小于等于size则0否则saveablesize
调用者
名称描述
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image