函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lean_record_pte - Clean a pte and record its address space offset in a* bitmap*@pte: Pointer to the pte*@addr: The virtual page address*@walk: pagetable walk callback argument* The function cleans a pte and records the range in

函数原型:static int clean_record_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)

返回类型:int

参数:

类型参数名称
pte_t *pte
unsigned longaddr
unsigned longend
struct mm_walk *walk
89  wpwalk等于private
90  cwalk等于to_clean_walk(wpwalk)
91  ptent等于pte
93  如果The following only work if pte_present() is true.* Undefined behaviour if not..
94  pgoff等于addrOur start address within vm_mm. 右移PAGE_SHIFT determines the page size 位的值加Offset (within vm_file) in PAGE_SIZEunits bitmap_pgoff
96  old_pte等于Start a pte protection read-modify-write transaction, which* protects against asynchronous hardware modifications to the pte
98  ptent等于pte_mkclean(old_pte)
99  Commit an update to a pte, leaving any hardware-controlled bits in* the PTE unmodified.
101  total自加
102  tlbflush_start等于两数取小(tlbflush_start, addr)
103  tlbflush_end等于两数取大(tlbflush_end, addr + PAGE_SIZE)
106  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
107  start等于两数取小(start, pgoff)
108  end等于两数取大(end, pgoff + 1)
111  返回:0