Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\pgalloc.h Create Date:2022-07-28 05:55:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__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()

Proto:static inline pgtable_t __pte_alloc_one(struct mm_struct *mm, gfp_t gfp)

Type:pgtable_t

Parameter:

TypeParameterName
struct mm_struct *mm
gfp_tgfp
63  pte = alloc_page(gfp)
64  If Not pte Then Return NULL
66  If Not pgtable_pte_page_ctor(pte) Then
67  __free_page(pte)
68  Return NULL
71  Return pte