Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto: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)

Type:unsigned long

Parameter:

TypeParameterName
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  Return total