Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int follow_pfn(struct vm_area_struct *vma, unsigned long address, unsigned long *pfn)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longaddress
unsigned long *pfn
4387  ret = -EINVAL
4391  If Not (Flags, see mm.h. & (Memory mapped I/O or similar | Page-ranges managed without "struct page", just pure PFN )) Then Return ret
4394  ret = follow_pte(The address space we belong to. , address, & ptep, & ptl)
4395  If ret Then Return ret
4397  pfn = pte_pfn( * ptep)
4398  pte_unmap_unlock(ptep, ptl)
4399  Return 0
Caller
NameDescribe
get_vaddr_framesget_vaddr_frames() - map virtual addresses to pfns*@start: starting user address*@nr_frames: number of pages / pfns from start to map*@gup_flags: flags modifying lookup behaviour*@vec: structure which receives pages / pfns of the addresses mapped.