函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Convert the address within this vma to the page offset within* the mapping, in pagecache page units; huge pages here.

函数原型:static unsigned long vma_hugecache_offset(struct hstate *h, struct vm_area_struct *vma, unsigned long address)

返回类型:unsigned long

参数:

类型参数名称
struct hstate *h
struct vm_area_struct *vma
unsigned longaddress
580  返回:addressOur start address within vm_mm. 右移huge_page_shift(h)位的值加Offset (within vm_file) in PAGE_SIZEunits 右移huge_page_order(h)位的值
调用者
名称描述
linear_hugepage_index
__vma_reservation_common
hugetlb_vm_op_close
hugetlbfs_pagecache_pageReturn the pagecache page at a given address within a VMA
hugetlbfs_pagecache_presentReturn whether there is a pagecache page to back given address within VMA.* Caller follow_hugetlb_page() holds page_table_lock so we cannot lock_page.
hugetlb_fault
hugetlb_mcopy_atomic_pteUsed by userfaultfd UFFDIO_COPY. Based on mcopy_atomic_pte with* modifications for huge pages.