Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:follow_pte

Proto:static inline int follow_pte(struct mm_struct *mm, unsigned long address, pte_t **ptepp, spinlock_t **ptlp)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddress
pte_t **ptepp
spinlock_t **ptlp
4354  __cond_lock( * ptlp, !(res = __follow_pte_pmd(mm, address, NULL, ptepp, NULL, ptlp)))
4357  Return res
Caller
NameDescribe
follow_pfnllow_pfn - look up PFN at a user virtual address*@vma: memory mapping*@address: user virtual address*@pfn: location to store found PFN* Only IO mappings and raw PFN mappings are allowed.* Return: zero and the pfn at @pfn on success, -ve otherwise.