函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static int unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm)

返回类型:int

参数:

类型参数名称
unsigned long *buf
struct memory_bitmap *bm
2221 j小于PAGE_SIZEsizeof(long)循环
2222  如果此条件成立可能性小(为编译器优化)(buf[j] == Data types related to memory bitmaps)则退出
2226  page_key_memorize(buf + j)
2228  如果pfn_valid(buf[j])且memory_bm_pfn_present(bm, buf[j])则memory_bm_set_bit(bm, buf[j])
2230  否则返回:负EFAULT
2234  返回:0
调用者
名称描述
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