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:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static int wp_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)

Type:int

Parameter:

TypeParameterName
pte_t *pte
unsigned longaddr
unsigned longend
struct mm_walk *walk
35  wpwalk = private
36  ptent = pte
38  If pte_write(ptent) Then
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 = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(tlbflush_start, addr)
45  tlbflush_end = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(tlbflush_end, addr + PAGE_SIZE)
49  Return 0