函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:follow_pte

函数原型:static inline int follow_pte(struct mm_struct *mm, unsigned long address, pte_t **ptepp, spinlock_t **ptlp)

返回类型:int

参数:

类型参数名称
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  返回:res
调用者
名称描述
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.