Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pack_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.

Proto:static int unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm)

Type:int

Parameter:

TypeParameterName
unsigned long *buf
struct memory_bitmap *bm
2221  When j < PAGE_SIZE / sizeof(long) cycle
2222  If Value for the false possibility is greater at compile time(buf[j] == Data types related to memory bitmaps) Then Break
2226  page_key_memorize(buf + j)
2228  If pfn_valid(buf[j]) && memory_bm_pfn_present(bm, buf[j]) Then memory_bm_set_bit(bm, buf[j])
2230  Else Return -EFAULT
2234  Return 0
Caller
NameDescribe
snapshot_write_nextsnapshot_write_next - Get the address to store the next image page.*@handle: Snapshot handle structure to guide the writing.* On the first call, @handle should point to a zeroed snapshot_handle* structure