函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memory_bm_set_bit

函数原型:static void memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn)

返回类型:void

参数:

类型参数名称
struct memory_bitmap *bm
unsigned longpfn
779  error等于memory_bm_find_bit - Find the bit for a given PFN in a memory bitmap
780  BUG_ON(error)
781  设置内存位
调用者
名称描述
swsusp_set_page_freeEach page frame allocated for creating the image is marked by setting the* corresponding bits in forbidden_pages_map and free_pages_map simultaneously
swsusp_set_page_forbidden
copy_data_pages
preallocate_image_pagespreallocate_image_pages - Allocate a number of pages for hibernation image.*@nr_pages: Number of page frames to allocate.*@mask: GFP flags to use for the allocation.* Return value: Number of page frames actually allocated
swsusp_allocswsusp_alloc - Allocate memory for hibernation image
duplicate_memory_bitmap
unpack_orig_pfnspack_orig_pfns - Set bits corresponding to given PFNs in a memory bitmap.*@bm: Memory bitmap.*@buf: Area of memory containing the PFNs.* For each element of the array pointed to by @buf (1 page at a time), set the* corresponding bit in @bm.