函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\ksm.c Create Date:2022-07-27 17:15:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_next_rmap_item

函数原型:static struct rmap_item *get_next_rmap_item(struct mm_slot *mm_slot, struct rmap_item **rmap_list, unsigned long addr)

返回类型:struct rmap_item

参数:

类型参数名称
struct mm_slot *mm_slot
struct rmap_item **rmap_list
unsigned longaddr
2194 rmap_list循环
2195  rmap_item等于rmap_list
2196  如果 + low bits used for flags below 按位与PAGE_MASK的值恒等于addr则返回:rmap_item
2198  如果 + low bits used for flags below 大于addr退出
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  如果rmap_item
2208  mm等于mm
2209  + low bits used for flags below 等于addr
2210  rmap_list等于rmap_list
2211  rmap_list等于rmap_item
2213  返回:rmap_item
调用者
名称描述
scan_get_next_rmap_item