Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\ksm.c Create Date:2022-07-28 15:41:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_next_rmap_item

Proto:static struct rmap_item *get_next_rmap_item(struct mm_slot *mm_slot, struct rmap_item **rmap_list, unsigned long addr)

Type:struct rmap_item

Parameter:

TypeParameterName
struct mm_slot *mm_slot
struct rmap_item **rmap_list
unsigned longaddr
2194  When rmap_list cycle
2195  rmap_item = rmap_list
2196  If ( + low bits used for flags below & PAGE_MASK) == addr Then Return rmap_item
2198  If + low bits used for flags below > addr Then Break
2200  rmap_list = rmap_list
2201  Removing rmap_item from stable or unstable tree.* This function will clean the information from the stable/unstable tree.
2202  free_rmap_item(rmap_item)
2205  rmap_item = alloc_rmap_item()
2206  If rmap_item Then
2208  mm = mm
2209  + low bits used for flags below = addr
2210  rmap_list = rmap_list
2211  rmap_list = rmap_item
2213  Return rmap_item
Caller
NameDescribe
scan_get_next_rmap_item