函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lean_record_shared_mapping_range - Clean and record all ptes in an* address space range*@mapping: The address_space we want to clean*@first_index: The first page offset in the range*@nr: Number of incremental page offsets to cover*@bitmap_pgoff: The page

函数原型:unsigned long clean_record_shared_mapping_range(struct address_space *mapping, unsigned long first_index, unsigned long nr, unsigned long bitmap_pgoff, unsigned long *bitmap, unsigned long *start, unsigned long *end)

返回类型:unsigned long

参数:

类型参数名称
struct address_space *mapping
unsigned longfirst_index
unsigned longnr
unsigned longbitmap_pgoff
unsigned long *bitmap
unsigned long *start
unsigned long *end
296  none_set等于start大于等于end
297  struct clean_walk cwalk = {base = {total = 0}, bitmap_pgoff = bitmap_pgoff, bitmap = bitmap, start = none_set ? nr : * start, end = none_set ? 0 : * end, }
305  i_mmap_lock_read(mapping)
306  WARN_ON(walk_page_mapping - walk all memory areas mapped into a struct address_space)
308  i_mmap_unlock_read(mapping)
310  start等于start
311  end等于end
313  返回:total