函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:At what user virtual address is page expected in @vma?

函数原型:static inline unsigned long __vma_address(struct page *page, struct vm_area_struct *vma)

返回类型:unsigned long

参数:

类型参数名称
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  返回:Our start address within vm_mm. pgoffOffset (within vm_file) in PAGE_SIZEunits 左移PAGE_SHIFT determines the page size 位的值
调用者
名称描述
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.
vma_address