函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pack_pfns - Prepare PFNs for saving.*@bm: Memory bitmap.*@buf: Memory buffer to store the PFNs in.* PFNs corresponding to set bits in @bm are stored in the area of memory* pointed to by @buf (1 page at a time).

函数原型:static inline void pack_pfns(unsigned long *buf, struct memory_bitmap *bm)

返回类型:void

参数:

类型参数名称
unsigned long *buf
struct memory_bitmap *bm
2070 j小于PAGE_SIZEsizeof(long)循环
2071  buf[j]等于memory_bm_rtree_next_pfn - Find the next set bit in a memory bitmap.*@bm: Memory bitmap.* Starting from the last returned position this function searches for the next* set bit in @bm and returns the PFN represented by it. If no more bits are
2072  如果此条件成立可能性小(为编译器优化)(buf[j] == Data types related to memory bitmaps)则退出
2075  page_key_read(buf + j)
调用者
名称描述
snapshot_read_nextsnapshot_read_next - Get the address to read the next image page from.*@handle: Snapshot handle to be used for the reading.* On the first call, @handle should point to a zeroed snapshot_handle* structure