函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:wp_pte - Write-protect a pte*@pte: Pointer to the pte*@addr: The virtual page address*@walk: pagetable walk callback argument* The function write-protects a pte and records the range in

函数原型:static int wp_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
35  wpwalk等于private
36  ptent等于pte
38  如果pte_write(ptent)则
39  old_pte等于Start a pte protection read-modify-write transaction, which* protects against asynchronous hardware modifications to the pte
41  ptent等于pte_wrprotect(old_pte)
42  Commit an update to a pte, leaving any hardware-controlled bits in* the PTE unmodified.
43  total自加
44  tlbflush_start等于两数取小(tlbflush_start, addr)
45  tlbflush_end等于两数取大(tlbflush_end, addr + PAGE_SIZE)
49  返回:0