函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pmd_alloc

函数原型:static inline pmd_t *pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address)

返回类型:pmd_t

参数:

类型参数名称
struct mm_struct *mm
pud_t *pud
unsigned longaddress
1865  返回:如果此条件成立可能性小(为编译器优化)(The "pud_xxx()" functions here are trivial for a folded two-level* setup: the pmd is never bad, and a pmd always exists (as it's folded* into the pud entry))且__pmd_alloc(mm, pud, address)则NULL否则pmd_offset(pud, address)
调用者
名称描述
ioremap_pmd_range
map_tboot_page
copy_pmd_range
__get_locked_pte
remap_pmd_range
apply_to_pmd_range
__handle_mm_faultBy the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry().
alloc_new_pmd
vmap_pmd_range
zero_pud_populate
mm_alloc_pmd