函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pages_per_huge_page

函数原型:static inline unsigned int pages_per_huge_page(struct hstate *h)

返回类型:unsigned int

参数:

类型参数名称
struct hstate *h
528  返回:1左移order
调用者
名称描述
update_and_free_page
__free_huge_page
alloc_huge_page
hugetlb_total_pagesReturn the number pages of memory we physically have, in PAGE_SIZE units.
copy_hugetlb_page_range
__unmap_hugepage_range
hugetlb_cowHugetlb_cow() should be called with page lock of the original hugepage held.* Called with hugetlb_instantiation_mutex held and pte_page locked so we* cannot race with other handlers or page migration.
hugetlb_no_page
hugetlb_mcopy_atomic_pteUsed by userfaultfd UFFDIO_COPY. Based on mcopy_atomic_pte with* modifications for huge pages.
follow_hugetlb_page
copy_huge_page
shm_add_rss_swapCalculate and add used RSS and swap pages of a shm.* Called with shm_ids.rwsem held as a reader