Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static unsigned long vma_hugecache_offset(struct hstate *h, struct vm_area_struct *vma, unsigned long address)

Type:unsigned long

Parameter:

TypeParameterName
struct hstate *h
struct vm_area_struct *vma
unsigned longaddress
580  Return ( address - Our start address within vm_mm. >> huge_page_shift(h)) + (Offset (within vm_file) in PAGE_SIZEunits >> huge_page_order(h))
Caller
NameDescribe
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.