Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memory_bm_set_bit

Proto:static void memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn)

Type:void

Parameter:

TypeParameterName
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  Atomically set a bit in memory
Caller
NameDescribe
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.