Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\snapshot.c Create Date:2022-07-28 10:01:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:minimum_image_size - Estimate the minimum acceptable size of an image

Proto:static unsigned long minimum_image_size(unsigned long saveable)

Type:unsigned long

Parameter:

TypeParameterName
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  Return If saveable <= size Then 0 Else saveable - size
Caller
NameDescribe
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image