Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:At what user virtual address is page expected in @vma?

Proto:static inline unsigned long __vma_address(struct page *page, struct vm_area_struct *vma)

Type:unsigned long

Parameter:

TypeParameterName
struct page *page
struct vm_area_struct *vma
351  pgoff = Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)
352  Return Our start address within vm_mm. + ( pgoff - Offset (within vm_file) in PAGE_SIZEunits << PAGE_SHIFT determines the page size )
Caller
NameDescribe
page_vma_mapped_walkpage_vma_mapped_walk - check if @pvmw->page is mapped in @pvmw->vma at*@pvmw->address*@pvmw: pointer to struct page_vma_mapped_walk. page, vma, address and flags* must be set. pmd, pte and ptl must be NULL.* Returns true if the page is mapped in the vma
page_mapped_in_vmapage_mapped_in_vma - check whether a page is really mapped in a VMA*@page: the page to test*@vma: the VMA to test* Returns 1 if the page is mapped into the page tables of the VMA, 0* if the page is not mapped into the page tables of this VMA. Only
page_address_in_vmaAt what user virtual address is page expected in vma?* Caller should check the page is actually part of the vma.