函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:make_huge_pte

函数原型:static pte_t make_huge_pte(struct vm_area_struct *vma, struct page *page, int writable)

返回类型:pte_t

参数:

类型参数名称
struct vm_area_struct *vma
struct page *page
intwritable
3250  如果writable
3251  entry等于huge_pte_mkwrite(huge_pte_mkdirty(mk_huge_pte(page, Access permissions of this VMA. )))
3253  否则
3254  entry等于huge_pte_wrprotect(mk_huge_pte(page, Access permissions of this VMA. ))
3257  entry等于pte_mkyoung(entry)
3258  entry等于pte_mkhuge(entry)
3259  entry等于arch_make_huge_pte(entry, vma, page, writable)
3261  返回:entry
调用者
名称描述
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.