Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:follow_pfn_pte

Proto:static int follow_pfn_pte(struct vm_area_struct *vma, unsigned long address, pte_t *pte, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longaddress
pte_t *pte
unsigned intflags
143  If flags & do get_page on page Then Return -EFAULT
146  If flags & mark page accessed Then
147  entry = pte
149  If flags & check pte is writable Then entry = pte_mkdirty(entry)
151  entry = pte_mkyoung(entry)
153  If Not pte_same( * pte, entry) Then
160  Return -EEXIST
Caller
NameDescribe
follow_page_pte