Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static unsigned long memory_bm_next_pfn(struct memory_bitmap *bm)

Type:unsigned long

Parameter:

TypeParameterName
struct memory_bitmap *bm
887  Do
888  pages = Zone end page frame + 1 - Zone start page frame
889  bits = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(pages - node_pfn, BM_BITS_PER_BLOCK)
890  bit = Find the next set bit in a memory region.
892  If bit < bits Then
894  node_bit = bit + 1
895  Return pfn
897  When ree_next_node - Jump to the next leaf node.* Set the position to the beginning of the next node in the* memory bitmap. This is either the next node in the current* zone's radix tree or the first node in the radix tree of the* next zone. cycle
899  Return Data types related to memory bitmaps
Caller
NameDescribe
clear_free_pages
copy_data_pages
swsusp_freeswsusp_free - Free pages allocated for hibernation image.* Image pages are alocated before snapshot creation, so they need to be* released after resume.
free_unnecessary_pages_unnecessary_pages - Release preallocated pages not needed for the image.
pack_pfnspack_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).
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
duplicate_memory_bitmap
mark_unsafe_pagesmark_unsafe_pages - Mark pages that were used before hibernation.* Mark the pages that cannot be used for storing the image during restoration,* because they conflict with the pages that had been used before hibernation.
get_bufferget_buffer - Get the address to store the next image data page.* Get the address that snapshot_write_next() should return to its caller to* write to.