函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__pte_alloc_one - allocate a page for PTE-level user page table*@mm: the mm_struct of the current context*@gfp: GFP flags to use for the allocation* Allocates a page and runs the pgtable_pte_page_ctor()

函数原型:static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp)

返回类型:pgtable_t

参数:

类型参数名称
struct mm_struct *mm
gfp_tgfp
63  pte等于alloc_page(gfp)
64  如果非pte则返回:NULL
66  如果非pgtable_pte_page_ctor(pte)则
67  __free_page(pte)
68  返回:NULL
71  返回:pte